From: Martin DeMello Date: 2004-04-12T23:44:13+09:00 Subject: Re: zip block oddities/bug? Simon Strandgaard wrote: > To me it looks like concatenation of block result was > forgotten. Therefore I ask.. is it intended? > > IMHO The 'each' behavier is othogonal from 'zip'. > Then its better to remove the behaver completely or > fix it. Leaving it unmodified confuses more than it helps. Note the difference: a.zip(b,c).map {|i| ... } # builds the array, then iterates over it a.zip(b,c) {|i| ... } # generates values one by one and calls block If the latter functionality were not built into zip, there'd be no way to do it from 'outside', short of using a continuation. As daz points out, there are definitely times you'd want to iterate without building either an intermediate or an output array. martin