From c97d0edaca7cbb6f62d0b95ff47cca17428f3d39 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Mon, 11 Sep 2017 10:01:47 -0400 Subject: [PATCH] Document NAMESPACE. --- List-of-Navigators.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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.