From: Massimiliano Mirra Date: 2002-11-17T02:55:40+09:00 Subject: Re: Ruby equivalent to Python's map()? On Sat, Nov 16, 2002 at 11:01:19PM +0900, dblack@candle.superlink.net wrote: > This is also a good example of why I wish we had map_with_indices. > Hey, wait a minute, we do: > > module Enumerable > def map_with_indices > (0...size).each {|i| yield(at(i),i)} ^^^^ Is that `map'? Massimiliano