Depth-first traversal. visit receives the node, its depth from the root, and the path of child-indices from the root.
visit
Depth-first traversal.
visitreceives the node, its depth from the root, and the path of child-indices from the root.