From: Nikodemus Siivola Date: 2002-11-26T23:53:41+09:00 Subject: Re: RCR: Stack, Queue alias methods in Array On Tue, 26 Nov 2002, Yukihiro Matsumoto wrote: > top "top" returns last item? probably confusing. But that confusion is exactly the reason why it is needed: unless a builtin Stack class is introduced: without it there is always a 1-minute head scratching break to remember which end push operates on. class Array alias top last end a = [] a.push 1 a.push 2 a.top # => 2 -- Nikodemus