I was wondering if a loop of this sort would be
effective in ruby for a large number of elements

    for i in 1..layers[0].count-1
      puts i
    end

Is it equivalent in efficiency to this?

int i = 1
while i < layers[0].count-1
   puts i
i+=1
end

-- 
Posted via http://www.ruby-forum.com/.