This whole thing got a bit sidetracked. The point was that everyone should just rember that if you iterating over a container, you shouldn't mutate that container at the same time, but rather iterate over a temporary copy to prevent weird side-effects.
Yep.