diff --git a/src/clj/com/rpl/specter.cljc b/src/clj/com/rpl/specter.cljc index 57cf8c6..ecb7801 100644 --- a/src/clj/com/rpl/specter.cljc +++ b/src/clj/com/rpl/specter.cljc @@ -1089,7 +1089,12 @@ (collect-val [this structure] val)) -(defdynamicnav with-fresh-collected +(defdynamicnav + ^{:doc + "Continues navigating on the given path with the collected vals reset to []. Once + navigation leaves the scope of with-fresh-collected, the collected vals revert + to what they were before."} + with-fresh-collected [& path] (late-bound-richnav [late (late-path path)] (select* [this vals structure next-fn]