From: Adam Prescott Date: 2011-03-01T06:46:00+09:00 Subject: Re: Comining Arrays --90e6ba5bb8d900f857049d5e913b Content-Type: text/plain; charset=UTF-8 On Mon, Feb 28, 2011 at 8:31 PM, Paul Sholtz wrote: > > That is, I'm stepping through one array, and then I'm "counting" to keep > track of where I am in the other array, so as to "add" the two arrays. > > I know (before calling the routine) that both arrays are of the same > size, and that elements of the corresponding arrays will be added > together. > I think what you want is Enumerable#zip. --90e6ba5bb8d900f857049d5e913b--