allow updating sets
This commit is contained in:
parent
14944d2582
commit
ea0cb032b3
1 changed files with 1 additions and 8 deletions
|
|
@ -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 []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue