by dahart · 3y ago · 0 comments
Where you represent the composite structure hanging from the point you want to mutate, so updating that point is merely dropping the header and appending the updated value as a new prefix.
Suppose you have array mutation, but the changes are only local.
Then as TuringTest pointed out, there are efficient ways to make those local changes in a functional programming language without the log(N) overhead.