From 3202393cd03361dbce56df92c19fe6e758a8545a Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Mon, 18 Sep 2017 08:35:44 -0400 Subject: [PATCH] Document 'must' 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 678ebd1..b3456b8 100644 --- a/List-of-Navigators.md +++ b/List-of-Navigators.md @@ -715,6 +715,15 @@ See also [keypath](#keypath) and [pred](#pred). nil ``` +`must` can now take multiple arguments, for concisely specifying multiple steps. It navigates to each key, one after another. + +```clojure +=> (select-any (must :a) {:a {:b 2} :c 3}) +{:b 2} +=> (select-any (must :a :b) {:a {:b 2} :c 3}) +2 +``` + `must` can transform to `NONE` to remove elements. ```clojure