From 161a616ada0713b4a3d77705deb9365a7b10143d Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Mon, 11 Sep 2017 10:57:20 -0400 Subject: [PATCH] Document NON-ELEM. --- List-of-Navigators.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/List-of-Navigators.md b/List-of-Navigators.md index 0deb7c5..10f3edf 100644 --- a/List-of-Navigators.md +++ b/List-of-Navigators.md @@ -21,6 +21,7 @@ - [NIL->LIST](#nil-list) - [NIL->SET](#nil-set) - [NIL->VECTOR](#nil-vector) + - [NONE-ELEM](#none-elem) - [STAY](#stay) - [STOP](#stop) - [VAL](#val) @@ -298,6 +299,17 @@ the structure has no metadata or may not contain metadata. :foo ``` +## NONE-ELEM + +`NONE-ELEM` navigates to the 'void' elem in a set. For transformations - if the result is not `NONE`, then add that value to the set. + +``` +=> (setval NONE-ELEM 3 #{1 2}) +#{1 2 3} +=> (setval NONE-ELEM 1 nil) +#{1} +``` + ## STAY `STAY` stays in place. It is the no-op navigator.