Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Why are "push", "pop", "shift" and "unshift" so named?by talexb (Chancellor) |
on May 02, 2007 at 15:29 UTC ( [id://613184]=note: print w/replies, xml ) | Need Help?? |
Since no one's mentioned the Pez dispenser here, I will. It's a toy that lets you 'push' candies into a stack, and then 'pop' them out. Amd, as has already been mentioned, 'shift' comes from the assembler operation of the same name, and 'unshift' follows from that.
In Section
Seekers of Perl Wisdom
|
|