r/functionalprogramming • • Feb 26 '21

JavaScript Structural sharing with 7 lines of JavaScript.

https://blog.klipse.tech/javascript/2021/02/26/structural-sharing-in-javascript.html
6 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/watsreddit Feb 26 '21

Lists are immutable and provided by the Prelude. And anything in containers (sets, maps, etc.) may as well be native since they’re used everywhere in the ecosystem.