This was originally in perldoc. I think it applies very generally if you take out the Perl-specific vocabulary:
(Almost any for or foreach construct) will get very confused if you add or remove elements to (what you're looping over) within the loop. So don't do that.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This was originally in perldoc. I think it applies very generally if you take out the Perl-specific vocabulary: