given this array:
[ ["a", ["example1"]], ["a", ["example2"]], ["b", ["example3"]] ]
would like to merge each array with the same 'beginning'
result should be:
[ ["a", ["example1"], ["example2"]], ["b", ["example3"]] ]
i tried different points from http://www.ruby-doc.org/core-2.2.0/Array.html so far, but i dont get the correct condition to match the elements against each other.