Document 'keypath' multiple arguments.

This commit is contained in:
Michael Fogleman 2017-09-18 08:37:52 -04:00
parent 3202393cd0
commit 2181c1c2c2

View file

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