From: Massimiliano Mirra Date: 2002-11-19T08:54:27+09:00 Subject: Re: ruby-dev summary 18711-18810 On Tue, Nov 19, 2002 at 12:19:50AM +0900, dblack@candle.superlink.net wrote: > > |Do you mean that map_with_index has been rejected on its own, or just > > |as a zip implementation? > Hmmmm.... I'll try to think of some examples. It certainly seems to > me to be at least as useful as each_with_index, potentially (i.e., if > it existed :-) I guess, if zip existed, you could simulate that with: a = ["a", "b", "c", "d"] a.zip(0...a.length).map {|item, index| ...} By the way, just like we have each_line, each_value, each_pair, each_byte... what about each_zip and map_zip as method names? a.map_zip(0...a.length) {|item, index| ...} Massimiliano