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?
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?