Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tiles
· 12y ago · 0 comments
Why are Elm's arrays so much more complex than JavaScript's O(n) arrays?
Comments
[–]
wheatBread
12y ago
It'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
[–]
dalke
12y ago
Elm's arrays are immutable. JS's are mutable.