Robert Klemme
11/1/2008 10:15:00 AM
On 31.10.2008 22:27, Bilyk, Alex wrote:
> Array can act as a stack as it has #pop and #last.
It even has #push.
> It can also act as a queue as it also has #first and #shift.
You can use #push and #shift or #unshift and #pop for queue behavior.
Plus there is Queue as Brian mentioned.
Cheers
robert