From: Yohanes Santoso Date: 2005-10-14T00:42:57+09:00 Subject: Re: array1 + array2 newb question Mike Schramm writes: > Hey all, > > I'm a ruby newbie, so this will be obvious, but I can't figure it out. > > I'm trying to create a map grid from arrayed names of streets. I > want to go from [1,2,3] and [a,b,c] to [[1,a], [2,a], [3,a], > [1,b],... [3,c]]. [1,2,3].zip([:a, :b, :c]) #=> [[1, :a], [2, :b], [3, :c]] YS