Document NAME.

This commit is contained in:
Michael Fogleman 2017-09-11 09:45:00 -04:00
parent c90358fb92
commit 72d05e9447

View file

@ -13,6 +13,7 @@
- [MAP-KEYS](#map-keys)
- [MAP-VALS](#map-vals)
- [META](#meta)
- [NAME](#name)
- [NIL->LIST](#nil-list)
- [NIL->SET](#nil-set)
- [NIL->VECTOR](#nil-vector)
@ -204,6 +205,17 @@ the structure has no metadata or may not contain metadata.
{:meta :datum}
```
## NAME
Navigates to the name of a keyword.
```clojure
=> (select [NAME] :key)
["key"]
=> (select [MAP-KEYS NAME] {:a 3 :b 4 :c 5})
["a" "b" "c"]
```
## NIL->LIST
`NIL->LIST` navigates to the empty list `'()` if the value is nil. Otherwise it stays at the current value.