diff --git a/src/clj/com/rpl/specter/impl.clj b/src/clj/com/rpl/specter/impl.clj index 4e66019..8d52909 100644 --- a/src/clj/com/rpl/specter/impl.clj +++ b/src/clj/com/rpl/specter/impl.clj @@ -218,7 +218,7 @@ (deftype FilterStructurePath [afn] StructurePath (select* [this structure next-fn] - (next-fn (filter afn structure))) + (->> structure (filter afn) doall next-fn)) (update* [this structure next-fn] (let [[filtered ancestry] (filter+ancestry afn structure) ;; the vec is necessary so that we can get by index later