The push and pop functions act at the high-index end of an array. Shift and unshift act on the low-index end.
The delete operator doesn't really belong in the list. It removes pairs from a hash, but on an array it only undefines the value of an element. For arrays, splice is the corresponding operator.
After Compline,
Zaxo
In reply to Re: Pop/shift/delete on array
by Zaxo
in thread Pop/shift/delete on array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |