3 ms·
Why are Elm's arrays so much more complex than JavaScript's O(n) arrays?
by tiles 12y ago
Why are Elm's arrays so much more complex than JavaScript's O(n) arrays?
- dalke 12y agoElm's arrays are immutable. JS's are mutable.
- wheatBread 12y agoIt's about mutability vs immutability. I think Zach explains the whole idea of immutable arrays really well: http://www.infoq.com/presentations/julia-vectors-maps-sets http://www.infoq.com/presentations/julia-vectors-maps-sets