From: Massimiliano Mirra Date: 2002-11-19T20:55:27+09:00 Subject: Re: ruby-dev summary 18711-18810 On Tue, Nov 19, 2002 at 09:06:05AM +0900, dblack@candle.superlink.net wrote: > And if map_with_index existed, you could define #zip in terms of it > :-) > > def zip(*others) > map_with_index {|e,i| [e,others.map{|n| n[i]}]} > end > > (or something) That would only work for objects with #[](integer). But then you already said it's ok to you... ;-) Massimiliano