Concatenate arrays items
- by j.
I have two arrays:
x = [ [0, "#0"], [1, "#1"] ]
y = [ [00, "00 description"], [10, "10 description"] ]
What i need is to merge them so i get the following as result:
result = [ [000, "#0 00 description"], [010, "#0 10 description"],
[100, "#1 00 description"], [110, "#1 10 description"]]
Is there a method for that? Or I'll need to use collect or something like this?
Thanks in advance.