On Sun, Apr 26, 2009 at 11:03 PM, Todd Benson <caduceass / gmail.com> wrote: > On Sun, Apr 26, 2009 at 10:59 PM, 7stud -- <bbxx789_05ss / yahoo.com> wrote: >> Todd Benson wrote: >>> My way was only slightly different. I opted to create the whole >>> array, and then drop the first without creating an extra object. >> >> Note that you made ruby go through the laborious chore of shifting every >> element in the array over one spot to the left. > > Is that really what happens? I thought it just reassigned a starting > point, and indexed from there. At least, that would make more sense > to me if it did. Let me rephrase. What is different on the underlying structure with [1..-1] and #shift? I'm not sure if shift really moves everything, but if it does, I wouldn't mind knowing. Todd