From: Robert Dober Date: 2008-07-20T00:28:21+09:00 Subject: Re: Array.drop doesn't work Is it just me, or is there general confusion? First of all #drop is not receiver modifying as is e.g. shift. 507/7 > ruby1.9 -e 'x=[1,2,3];x.drop(1);p x' [1, 2, 3] And then drop (n) is not returning the first n elements of an array but all but the first n 512/12 > ruby1.9 -e 'p [1,2,3].drop(1)' [2, 3] thus the workaround implementation of 1.8.7.pred would rather be: class Array def drop n; self[n..-1] end end HTH Robert -- http://ruby-smalltalk.blogspot.com/ --- AALST (n.) One who changes his name to be further to the front D.Adams; The Meaning of LIFF