From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2002-11-15T06:21:04+09:00 Subject: Re: Ruby equivalent to Python's map()? In article , wrote: >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. > Perhaps, but when I see 'zip' I'm thinking it has something to do with compression. Phil