Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are built in mutable data structures now too: 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/799d62fe3bba99...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: