From: Martin DeMello Date: 2002-11-27T22:33:37+09:00 Subject: Re: RCR: Stack, Queue alias methods in Array Yukihiro Matsumoto 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