From: Simon Willard Date: 2009-09-29T05:43:30+09:00 Subject: Noob - loop indexing I try to make Ruby loops using "each" like this: # a is an array a.each do ... end But I always end up needing the array index in the body of the loop for one reason or another. Then I change it to: i=0; while i