From 35c8a9380ecd11000b4466aba37674753d40f400 Mon Sep 17 00:00:00 2001 From: nathanmarz Date: Wed, 1 Mar 2017 10:46:28 -0500 Subject: [PATCH] Add with-fresh-collected docstring --- src/clj/com/rpl/specter.cljc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]