Thanks, @raulraja that’s definitely interesting and useful information. In my example I actually have a list of `Node`s at top level (so a forest), not just one node (as in root node). But if I wanted to define
flatMap
for
Node
, that would probably be best as an extension function? I’m not sure how I could get rid of the intermediate collections, but I’ll look into the links you posted later.