Subject: Merging two arrays -> array of arrays
From: Allen Walker <auswalk gmail.com>
Date: Fri, 21 May 2010 13:47:04 +0900
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/.