diff --git a/List-of-Navigators.md b/List-of-Navigators.md index e11059f..e1089fa 100644 --- a/List-of-Navigators.md +++ b/List-of-Navigators.md @@ -10,6 +10,7 @@ - [END](#end) - [FIRST](#first) - [LAST](#last) + - [MAP-KEYS](#map-keys) - [MAP-VALS](#map-vals) - [META](#meta) - [NIL->LIST](#nil-list) @@ -168,6 +169,15 @@ nil nil ``` +## MAP-KEYS + +`MAP-KEYS` navigates to every key in a map. `MAP-VALS` is more efficient than `[ALL FIRST]`. + +```clojure +=> (select [MAP-KEYS] {:a 3 :b 4}) +[:a :b] +``` + ## MAP-VALS `MAP-VALS` navigates to every value in a map. `MAP-VALS` is more efficient than `[ALL LAST]`.