From: "David A. Black" Date: 2008-07-16T22:28:17+09:00 Subject: Re: Array.drop doesn't work Hi -- On Wed, 16 Jul 2008, Dave Bass wrote: > Frederick Cheung wrote: >> Seems like this was added in 1.8.7 (if you look at the docs for 1.8.6 >> you'll see it's not there) > > Workaround: in 1.8.6 use something like > > arr = n.times { arr.shift } #times returns its receiver, so that would set arr to n. David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails July 21-24 Edison, NJ Advancing With Rails August 18-21 Edison, NJ See http://www.rubypal.com for details and updates!