Comment
Comment by bgwhn
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.
Be the first to share your thoughts.