I'm iterating through an array in ruby with each. Is there an easy way to get the iteration number or array index without going back to a for loop?
Ah, got it.
each_with_index
woo!
edit: whoops!
2.1m questions
2.1m answers
60 comments
57.0k users