From: Ohad Lutzky Date: 2006-09-05T22:06:03+09:00 Subject: Re: Enum Hmm, which reminds me. Why don't we get one of these with ruby? module Enumerable def collect_with_index arr = [] self.each_with_index do |a,i| arr << yield(a,i) end arr end end -- Posted via http://www.ruby-forum.com/.