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