Please sign in to comment.
We can't iterate over the object we are modifying
If subtract is called on itself, prefix and this is the same and the iterator is invalid after modifying the underlaying object. Instead just clear everyting.
- Loading branch information...