From: Reinhart Viane Date: 2010-05-21T16:32:53+09:00 Subject: Re: [SPAM] Merging two arrays -> array of arrays Didn't see kohno's answer -----Original Message----- From: Reinhart Viane [mailto:rv@domos.be] Sent: vrijdag 21 mei 2010 9:32 To: ruby-talk ML Subject: Re: [SPAM] Merging two arrays -> array of arrays Maybe like this: i=0 a = [1,2,3] b = [4,5,6] new_array=[] while i array of arrays Importance: Low 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/.