I'm creating lists of lists than can be of unlimited depth, for example:
[[[['Alpha'], ['Bravo']], ['Charlie']], [[['Delta'], ['Echo']], ['Foxtrot']]]
I'd like to get to each element in the list. It's always a left-right situation on any level.
EDIT: The reason I'm creating those lists of lists is: I've found it a convenient way to record the parent-child relations between elements. Flattening isn't applicable in this case, as it disregards the relations between elements.
Thanks.
Note: There are a couple of similar questions here, but I'm pretty sure this isn't a dupe