docstring for MAP-VALS
This commit is contained in:
parent
4379a3dc9c
commit
81ec559e69
1 changed files with 8 additions and 2 deletions
|
|
@ -163,9 +163,15 @@
|
||||||
ALL
|
ALL
|
||||||
(comp-paths (i/->AllNavigator)))
|
(comp-paths (i/->AllNavigator)))
|
||||||
|
|
||||||
(defnav MAP-VALS []
|
(defnav
|
||||||
|
^{:doc "Navigate to each value of the map. This is more efficient than
|
||||||
|
navigating via [ALL LAST]"}
|
||||||
|
MAP-VALS
|
||||||
|
[]
|
||||||
(select* [this structure next-fn]
|
(select* [this structure next-fn]
|
||||||
(doall (mapcat next-fn (vals structure))))
|
(doseqres NONE [v (vals structure)]
|
||||||
|
(next-fn v)
|
||||||
|
))
|
||||||
(transform* [this structure next-fn]
|
(transform* [this structure next-fn]
|
||||||
(i/map-vals-transform structure next-fn)
|
(i/map-vals-transform structure next-fn)
|
||||||
))
|
))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue