4 ms·
The simplifying assumption that all tree nodes have the same type and the same function should be called on them seems unrealistic. This kind of imperative ite
by HelloNurse 1y ago
The simplifying assumption that all tree nodes have the same type and the same function should be called on them seems unrealistic.
This kind of imperative iteration seems better served by the traditional visitor design pattern: more verbose (more explicit, not more complex) and more general.