6 ms·
If the data structure has a reference count of one, you can safely mutate the data structure instead. Many persistent immutable data structure libraries use thi
by pipeep 7y ago
If the data structure has a reference count of one, you can safely mutate the data structure instead. Many persistent immutable data structure libraries use this as an additional optimization.