diff --git a/src/clj/com/rpl/specter.cljc b/src/clj/com/rpl/specter.cljc index 308e873..b37849a 100644 --- a/src/clj/com/rpl/specter.cljc +++ b/src/clj/com/rpl/specter.cljc @@ -517,9 +517,13 @@ [apath structure] (compiled-traverse (i/comp-paths* apath) structure)) -(def compiled-traverse-all i/compiled-traverse-all*) +(def ^{:doc "Version of traverse-all that takes in a path precompiled with comp-paths"} + compiled-traverse-all i/compiled-traverse-all*) -(defn traverse-all* [apath] (compiled-traverse-all (i/comp-paths* apath))) +(defn traverse-all* + "Returns a transducer that traverses over each element with the given path." + [apath] + (compiled-traverse-all (i/comp-paths* apath))) ;; Transformation functions