I want to convert a 2-D Array into a Array
array = [["red","green"],["red","yellow"]]
to that:
a = ["red","green","red","yellow"]
And it should also be a solution for bigger arrays
I want to convert a 2-D Array into a Array
array = [["red","green"],["red","yellow"]]
to that:
a = ["red","green","red","yellow"]
And it should also be a solution for bigger arrays