Clearly push and pop work at the growable end of the array so obviously there is an efficiency advantage.
As you've probably guessed by now, both ends are growable.
Unshift used to be quite a bit slower before tilly fixed it.
In reply to Re: To push and pop or not to push and pop?
by robin
in thread To push and pop or not to push and pop?
by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |