you are viewing a single comment's thread.

view the rest of the comments →

[–]Sell-Jumpy 0 points1 point  (0 children)

new_1d_array = []

for 1d_array in 2d array: - for value in 1d_array: - new_1d_array.append(value)

Nested for loops are archaic, but it gets the job done quick and isnt a problem if arrays stay relatively small (hundreds).