In fact there _is_ slice :)
which takes the same args.
a.slice(1..-2)
and even a destructive
a.slice!(1..-2)
but for some reason my ruby really didn't like it... so never mind the
destructive part....
On Tue, Apr 8, 2008 at 11:41 AM, Xavier Noria <fxn / hashref.com> wrote:
> On Apr 8, 2008, at 18:30 , Mark Dodwell wrote:
>  Hehe.
>
>  I think the natural idiom is a slice:
>
>    a[1..-2]