3 ms·
There are built in mutable data structures now too: https://clojuredocs.org/clojure.core/transient https://clojuredocs.org/clojure.core/transient Though their
by fulafel 7y ago
There are built in mutable data structures now too: https://clojuredocs.org/clojure.core/transient https://clojuredocs.org/clojure.core/transient
Though their usage in public interfaces is not idiomatic Clojure and they come closely coupled with functions to transform them back to immutable values.
You can look up eg TransientArrayMap in ClojureScript internals to see how it's implemented on that side: https://github.com/clojure/clojurescript/blob/799d62fe3bba999287558538ca6b61501de02d49/src/main/cljs/cljs/core.cljs#L7052 https://github.com/clojure/clojurescript/blob/799d62fe3bba99...