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?
See Question&Answers more detail:osI'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?
See Question&Answers more detail:os