Is there a reason you don't go with the fall back plan and be done with it? Copy/pop is a solution that's very unlikely to confuse whoever picks up the code next.
In reply to Re: Trying to slice off all array elements but the last one
by dws
in thread Trying to slice off all array elements but the last one
by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |