From: Kyle Schmitt Date: 2008-04-09T01:56:07+09:00 Subject: Re: Remove first and last items from array 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 wrote: > On Apr 8, 2008, at 18:30 , Mark Dodwell wrote: > Hehe. > > I think the natural idiom is a slice: > > a[1..-2]