I\'ve got two (or more) arrays with 12 integers in each (corresponding to values for each month). All I want is to add them together so that I\'ve got a single array with su
Now we can use sum in 2.4
nums = [[1, 2, 3], [4, 5, 6]] nums.transpose.map(&:sum) #=> [5, 7, 9]