From: Robert Klemme Date: 2010-10-07T19:58:04+09:00 Subject: Re: looping through array starting at i !=0 On Thu, Oct 7, 2010 at 12:41 AM, Stephen Becker wrote: > @weights[2..-1].each_index{|i| > } That would be @weights[3..-1].each_index{|i| } (OP said "greater than 2".) But it does not work because each_index will start at 0. Rather you probably meant @weights[3..-1].each {|elem| } For the indexes only one can do (3...@weights.size).each {|i| } or for i in 3...@weights.size end Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/