SE450: A Tree: Functions over Composite [6/25] Previous pageContentsNext page

Iterators over a composite have limited value, because they treat every type of node the same.

How to write a function over a composite?

There are two things that vary here: which function and which type of node.

Previous pageContentsNext page