Closed haleyga closed 6 years ago
Currently, the 'insert' operation on each tree terminates if a node already exists for a given key. Instead, I prefer that the default behavior be to just replace the existing node with the new one. It's a cheap 'update' operation then.
Currently, the 'insert' operation on each tree terminates if a node already exists for a given key. Instead, I prefer that the default behavior be to just replace the existing node with the new one. It's a cheap 'update' operation then.