It says on the label "don't muck with arrays you're looping over", you muck with the array, and you get strange behavior. What's to not understand?
While I concede it might be interesting to try and figure out what execution path is happening to cause the results, you're in doctor-it-hurts-when-I-do-this territory and shouldn't count on any particular behavior being repeatable or stable.
In reply to Re: Mutable foreach list?
by Fletch
in thread Mutable foreach list?
by zigdon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |