From: Dave Burt Date: 2006-06-15T20:01:21+09:00 Subject: Re: Does each over an array bring a counter/index with it? Duane Morin wrote: > If I'm "each"ing over an array, is there a built-in way to get the > numeric index of the item that I'm on, or do I have to increment my own > counter variable? I saw each_with_index but that seems to be for Hash, > not Array. It's for Enumerable, which is mixed-in to Array and Hash, so you will be able to use it. Cheers, Dave