From: Chris Date: 2002-05-06T07:33:15+09:00 Subject: Re: Iterators and index In article <3CD59857.9050807@imperitek.com>, David Corbin wrote: > But, what I'd like to be able to do, is this. > ---frag 2--- > list = ["Alpha", "Beta", "Gamma", "Delta" ] > > list.indexed_each() { |index,letter| doSomething(index+1,letter) } > ---end--- list.each_with_index { |x, y| puts "#{y}: #{x}" }