The first time I checked, the difference was O(1) vs O(n). I fixed that to O(1) for both, but with a significantly worse constant on unshift.
In reply to Re^6: Incrementing string arrays when used with foreach loops
by tilly
in thread Incrementing string arrays when used with foreach loops
by gctaylor1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |