8
This is the array version of: Sum 2 hashes attributes with the same key
I have 2 arrays, for example:
a = [[1,10],[2,20],[3,30]]
b = [[1,50],[3,70]]
How can i sum each on the first value (if it exists) to get:
c = [[1,60],[2,20],[3,100]]