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