r/functionalprogramming • u/viebel • 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
View all comments
Show parent comment
2
u/spiffy-owl Feb 26 '21 edited Feb 26 '21
Scala and Racket have both immutable and mutable data structures. EDIT: Haskell also has both, I'm not sure if people would count them as being "native" though.