I have a list composed of lists of lists, looking this: [[[hello, one, two, three],[four, to, the][six]],[[k][block, three, nine]],... and so on. What i need to do is seperate each individual list of lists, as below, [[hello, one, two, three],[four, to, the],[six]] [[k],[block, three, nine]]....
I then need to merge the individual lists inside thes lists together, like below: [hello, one, two, three, four, to, the, six] [k, block, three, nine]
I have written some code to iterate through the list, and find the inner list of list, which i want to merge together.
I dont however know what to do from here, i cannot find a way to store just the individual inner lists in seperate lists, so they can then be iterated through and their inside lists merged together. Does anybody know how to do this, or something to the same effect? I would greatly appreciate any help Thanks
Thanks for the quick response! That is very close to what i am trying to do. The output now is the entire list of lists, combined together forming one list. What i need to do however is have a seperate list for each of the lists inside the outer list. So using if your example contained another list like below: [[a,b,[abc,def],c],[[ghi,[klmn,opq]]]]
it would return [a,b,[abc,def],c] [ghi,[klmn,opq]]
Do you know how to make this distinction between the lists?