I have a 2d array of the following form:
[ [(, (, (, (, (,],
[1.0,1.0,1.0,1.0,1.0,],
[+, +, +, +, +,],
[2.0,2.0,2.0,2.0,2.0,],
[), ), ), ), )]
]
i.e a mixture of integers and mathematical characters. What I want to do is convert this into a series of strings in a 1D array like:
[
(1+2),
(1+2),
(1+2),
(1+2),
(1+2)
]
Is there a way to do this with join?
You could use transpose, and then join the elements of the transposed array (I have modified the numbers to clearly show what is happening):
Which has as an output: