The answers at
How do I make a flat list out of a list of lists?
do not answer my question, I am talking about an inconsistent number of neste lists .
Suppose this is the list:
list_a = [
[[1, 2]],
[1, 1, 2],
[[1, 2, 2], [3], [3,4]],
[[[1,1], [1,2,3], [1,2,1]], [1,1]]
]
I would like to get all values in one list, like this:
list_b = [1, 2, 1, 1, 2, 1, 2, 2, 3, 3, 4, 1, 1, 1, 2, 3, 1, 2, 1, 1, 1]