mortoray.com
Visiting nodes in a recursive data type with traversal contexts
Iterating over the elements of a recursive data structure can be difficult. Given a set of objects, where each object could potentially link to any other object, how do we visit each object without…