I have an Array[Array[Int]] and what i want to do is, per two of the inside Arrays, merge their elements to one Array.
E.g. I have: Array(Array(1), Array(2), Array(3), Array(4))
What i want as a result is:
Array(Array(1, 2) Array(3, 4))
Is something like this possible in scala?