i have 4 arrays.
["one", "two", "three"]
["1", "2", "3"
["un", "deux", "trois"]
["ichi", "ni", "san"]
is it possible to concatenate each element in their respective arrays ?
so i end up with single lines of string like like
"one, 1, un, ichi"\n
"two,2, deux,ni"\n
and so on...
is it possible to do this in one loop ?
for i in (1..array1.count)
puts array1[i] + ", " + array2[i] + ", " + array3[i] + ", " + array4[i]
end
What happens when there might be unpredictable number of arrays & they are each unequal size?