I'm still far from convinced that there is any benefit to a splice/last approach, even based solely on the grounds that it's slower and more complex than something like this:I agree. This can be optimized-out.
In reply to Re^4: foreach argument modification inside loop, followed by return from loop
by vsespb
in thread foreach argument modification inside loop, followed by return from loop
by vsespb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |