From 2181c1c2c262148192c870ebec68d951f865fc58 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Mon, 18 Sep 2017 08:37:52 -0400 Subject: [PATCH] Document 'keypath' multiple arguments. --- List-of-Navigators.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/List-of-Navigators.md b/List-of-Navigators.md index b3456b8..7d41ce4 100644 --- a/List-of-Navigators.md +++ b/List-of-Navigators.md @@ -648,6 +648,15 @@ See also [must](#must) [0 :boo] ``` +`keypath` can now take multiple arguments, for concisely specifying multiple steps. It navigates to each key one after another. + +```clojure +=> (select-one (keypath "out") {"out" {"in" 3}}) +{"in" 3} +=> (select-one (keypath "out" "in") {"out" {"in" 3}}) +3 +``` + `keypath` can transform to `NONE` to remove elements. ```clojure