I have a big array with many subarrays inside and am trying to join all of the ones inside. I know how to concatenate arrays, but since the number of inner arrays varies, I don't know to make one function to concatenate these ones. I understand that i'll need one or possibly more loops, but am not sure how to do it. So far I have been doing it manually like this and keep going till i get to the last index:
ldata = ldata[0]+ldata[1]+ldata[2]+ldata[3]+ldata[4]
where ldata is the bigger list, and all of the indexes are the inner lists. How do I do this?
Edit: Here is an example
a = [[1,2],[3,4],[5,6]]