On Sun, 5 Sep 2004, Matt Diephouse wrote:
> Am I the only one that thinks that -1st should return the last element
> in an array under the nth scheme? 1st should mean the first element.
> -1st should mean the first element of the reversed array.
>
> Don't say -1st is the "first from last". If last is the opposite of
> first, I would expect 1st to mean "first from first," which would mean
> the second. Say "first from the end".

It matches up with perl5 C<$array[-1]> and is a workable
interpretation of negative ordinals.

So I could think that way too.

   @ary[ 1st .. -1st ]    # hmm...



Reply via email to