If I have a List
, how can I turn that into a >
List
that contains all the objects in the same iteration order
An expansion on Eran's answer that was the top answer, if you have a bunch of layers of lists, you can keep flatmapping them.
This also comes with a handy way of filtering as you go down the layers if needed as well.
So for example:
List>>>>> multiLayeredList = ...
List
This is would be similar in SQL to having SELECT statements within SELECT statements.