Document 'must' multiple arguments.

This commit is contained in:
Michael Fogleman 2017-09-18 08:35:44 -04:00
parent ca71577745
commit 3202393cd0

View file

@ -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