Add docstrings for keypath, must, and nthpath
This commit is contained in:
parent
16310d6008
commit
71ed0ffae9
1 changed files with 14 additions and 3 deletions
|
|
@ -794,10 +794,21 @@
|
||||||
next-val))
|
next-val))
|
||||||
structure)))))
|
structure)))))
|
||||||
|
|
||||||
(def keypath (eachnav n/keypath*))
|
(def ^{:doc "Navigate to the specified keys one after another. If navigate to NONE,
|
||||||
(def must (eachnav n/must*))
|
that element is removed from the map or vector."}
|
||||||
(def nthpath (eachnav n/nthpath*))
|
keypath
|
||||||
|
(eachnav n/keypath*))
|
||||||
|
|
||||||
|
(def ^{:doc "Navigate to the specified keys one after another, only if they exist
|
||||||
|
in the data structure. If navigate to NONE, that element is removed
|
||||||
|
from the map or vector."}
|
||||||
|
must
|
||||||
|
(eachnav n/must*))
|
||||||
|
|
||||||
|
(def ^{:doc "Navigate to the specified indices one after another.If navigate to
|
||||||
|
NONE, that element is removed from the sequence."}
|
||||||
|
nthpath
|
||||||
|
(eachnav n/nthpath*))
|
||||||
|
|
||||||
(defrichnav
|
(defrichnav
|
||||||
^{:doc "Navigates to result of running `afn` on the currently navigated value."}
|
^{:doc "Navigates to result of running `afn` on the currently navigated value."}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue