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)))
|
||||
(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 []
|
||||
|
|
|
|||
Loading…
Reference in a new issue