On Tuesday, 24 December 2019 at 19:52:44 UTC, H. S. Teoh wrote: > So far so good. But now I want to iterate over the trees, and > I'd like to be able to use information in the Derived node > directly. How about using a visitor pattern to iterate over the nodes? That's how I'd solve it in a OOP context.