allow updating sets

This commit is contained in:
Sol Ackerman 2015-02-27 11:34:49 -06:00
parent 14944d2582
commit ea0cb032b3

View file

@ -143,14 +143,7 @@
(into [] (r/mapcat (partial next-fn vals) structure))) (into [] (r/mapcat (partial next-fn vals) structure)))
(update* [this vals structure next-fn] (update* [this vals structure next-fn]
(let [ret (r/map (partial next-fn vals) structure)] (let [ret (r/map (partial next-fn vals) structure)]
(cond (vector? structure) (into (empty structure) ret))
(into [] ret)
(map? structure)
(into {} ret)
:else
(into '() ret)))
)) ))
(deftype ValStructurePath [] (deftype ValStructurePath []