Hacker News new | ask | show | jobs
by sevensor 251 days ago
I can see how this is useful if you’re repeatedly updating the same part of a tree. I can’t quite see how to use this approach for random edits. Seems like you’re back at recreating all the nodes back up to the root every time?
1 comments

You’re right! For random access and edits you’ll need a different solution. Maybe some monads to encapsulate the mutations.