diff --git a/src/clj/com/rpl/specter/impl.clj b/src/clj/com/rpl/specter/impl.clj index 9891885..73c5386 100644 --- a/src/clj/com/rpl/specter/impl.clj +++ b/src/clj/com/rpl/specter/impl.clj @@ -143,14 +143,7 @@ (into [] (r/mapcat (partial next-fn vals) structure))) (update* [this vals structure next-fn] (let [ret (r/map (partial next-fn vals) structure)] - (cond (vector? structure) - (into [] ret) - - (map? structure) - (into {} ret) - - :else - (into '() ret))) + (into (empty structure) ret)) )) (deftype ValStructurePath []