Reputation: 59
I have a doubt, i have a .each loop like this:
mayor = @lt[1][1]
@lt.each do |item|
if item[1] > mayor then
mayor = item[1]
end
end
That loop started in the first item of the array @lt
but instead i want it to start by the second item
Upvotes: 0
Views: 72