diff --git a/List-of-Navigators.md b/List-of-Navigators.md index e1089fa..345d2bc 100644 --- a/List-of-Navigators.md +++ b/List-of-Navigators.md @@ -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.