From: kohno kazuyuki on 21 May 2010 00:56 I was typoing... Bey! => Bye! On Fri, May 21, 2010 at 1:53 PM, kohno kazuyuki <kkohno(a)gmail.com> wrote: > Hi! > > [a, b].transpose > => [[1, 4], [2, 5], [3, 6]] > > Bey! > > -- > jugyo > > > On Fri, May 21, 2010 at 1:47 PM, Allen Walker <auswalk(a)gmail.com> wrote: >> Example: >> >> a = [1,2,3] >> b = [4,5,6] >> >> I want to merge them so the new array is: >> >> [ [1,4], [2,5], [3,6] ] >> >> Can't figure out the best way to do this. >> >> Thanks >> -- >> Posted via http://www.ruby-forum.com/. >> >> > >
First
|
Prev
|
Pages: 1 2 Prev: Merging two arrays -> array of arrays Next: ruby-qt bindings - is somebody in charge of those? |