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)))
(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 []