3 ms·
One nifty thing not covered here is that Mori also has an extremely efficient O(1) thaw to get a mutable copy of an immutable value and a O(1) freeze to get a p
by swannodette 13y ago
One nifty thing not covered here is that Mori also has an extremely efficient O(1) thaw to get a mutable copy of an immutable value and a O(1) freeze to get a persistent value from a mutable data structure (transient).
The performance of a transient vector is shockingly close to using a JavaScript array under Google V8 for adding new elements:
http://github.com/swannodette/mori#efficient-freezethaw http://github.com/swannodette/mori#efficient-freezethaw