How can I directly concat n-dimensional arrays?
A=[[1,2],[3,4]]
==> A+A = [[1,2,1,2],[3,4,3,4]]
# analog "abc"+"def"="abcdef"
What value of n? For instance, one could reasonably expect A + A = [[2, 4],
[6, 8]] if you keep going till you hit a primitive value, or [A, A] if you
don't drill down at all.
For the specific case of adding an array-of-arrays to itself and stopping
at concatenating the one-dimensional arrays, try a.zip(a).map {|i, j| i + j}