Yukihiro Matsumoto <matz / ruby-lang.org> wrote:
> 
> "top" is too generic.  One can think of arbitrary edge of an array,
> and I'm afraid too many guess wrong side.  I did, for example.

Yes, but only the first time. Though you're right, it is less intuitive
than the other methods, since in the case of push and shift there *is* a
definite edge associated. I guess because programmers have internalised
the fact that arrays grow from the end, making the two edges different in
terms of operation cost.

martin