3 ms·
I think that he means the copy that gets returned is what gets destructively modified. In other words, the overall process winds up being functional and nondes
by ricree 16y ago
I think that he means the copy that gets returned is what gets destructively modified.
In other words, the overall process winds up being functional and nondestructive, but the intermediate internal steps aren't necessarily so.
- dons 16y agoRight. You better copy the original data structure. That's one good way to guarantee internal mutation (of the copy) isn't going to be visible. Or it gets tricky (e.g. linear types)