Switch from atom to mutable-cell
This commit is contained in:
parent
fbacd49817
commit
4c8aeebafc
1 changed files with 3 additions and 3 deletions
|
|
@ -266,10 +266,10 @@
|
||||||
(transform* [this structure next-fn]
|
(transform* [this structure next-fn]
|
||||||
(let [select-result (compiled-select late structure)
|
(let [select-result (compiled-select late structure)
|
||||||
transformed (next-fn select-result)
|
transformed (next-fn select-result)
|
||||||
values-to-insert (atom transformed)]
|
values-to-insert (i/mutable-cell transformed)]
|
||||||
(compiled-transform late
|
(compiled-transform late
|
||||||
(fn [_] (let [next-val (first @values-to-insert)]
|
(fn [_] (let [next-val (first (i/get-cell values-to-insert))]
|
||||||
(swap! values-to-insert rest)
|
(i/update-cell! values-to-insert rest)
|
||||||
next-val))
|
next-val))
|
||||||
structure)))))
|
structure)))))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue