Is there any way to take a lists of lists, with any depth level, and return the list completely flat (like in LISP)? For example:
input: [[[1]], [[[[2]]]], [3], 4, [[[[[[5],[6]]]]]]]
output: [1,2,3,4,5,6]
This is an extreme example, I'm using it just to illustrate my question.