docstring for MAP-VALS

This commit is contained in:
Nathan Marz 2016-06-07 10:31:07 -04:00
parent 4379a3dc9c
commit 81ec559e69

View file

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