Document 'keypath' multiple arguments.
This commit is contained in:
parent
3202393cd0
commit
2181c1c2c2
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue