Document NAMESPACE.

This commit is contained in:
Michael Fogleman 2017-09-11 10:01:47 -04:00
parent 72d05e9447
commit c97d0edaca

View file

@ -14,6 +14,7 @@
- [MAP-VALS](#map-vals)
- [META](#meta)
- [NAME](#name)
- [NAMESPACE](#namespace)
- [NIL->LIST](#nil-list)
- [NIL->SET](#nil-set)
- [NIL->VECTOR](#nil-vector)
@ -216,6 +217,17 @@ Navigates to the name of a keyword.
["a" "b" "c"]
```
## NAMESPACE
Navigates to the namespace of keywords or variables.
```clojure
=> (select [ALL NAMESPACE] [::test ::fun])
["playground.specter" "playground.specter"]
=> (select [ALL NAMESPACE] [::test :fun])
["playground.specter" nil]
```
## NIL->LIST
`NIL->LIST` navigates to the empty list `'()` if the value is nil. Otherwise it stays at the current value.