You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I can see, visitors return array of nodes, and how I should use it after I get it?
Proposed I should reiterate this array?
It looks like visit method should yield value and lazy step by tree when I iterate by yield, otherwise the whole point of traversing the tree is lost (because it turns out a double tree walk).
As I can see, visitors return array of nodes, and how I should use it after I get it?
Proposed I should reiterate this array?
E.g. in other libs:
https://github.com/slince/tree-samples/blob/master/tests/Traversal/BFSTest.php#L17
https://github.com/jorpo-co/tree/blob/master/tests/Traversal/BreadthFirstTraversalTest.php#L36
The text was updated successfully, but these errors were encountered: