Add docstrings for keypath, must, and nthpath

This commit is contained in:
nathanmarz 2017-02-14 10:46:02 -05:00
parent 16310d6008
commit 71ed0ffae9

View file

@ -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."}