Document NAME.
This commit is contained in:
parent
c90358fb92
commit
72d05e9447
1 changed files with 12 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue