From: dblack@... Date: 2002-11-15T05:06:41+09:00 Subject: Re: Ruby equivalent to Python's map()? Hi-- On Fri, 15 Nov 2002, Phil Tomson wrote: > >a = [1,2,3] > >b = [4,5,6] > >map(None, a, b) --> [[1,4],[2,5],[3,6]] > > > > Hmmm... this seems to be what the proposed 'zip' method on Array would do. > It's not included yet, but apparently has been approved. > > I'm not sure that 'zip' is the best name, though... I think zip is the traditional name for this function in functional languages. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav