Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Implement pre- and post-order walkers #24

Merged
merged 2 commits into from
Aug 19, 2015

Conversation

localheinz
Copy link
Collaborator

This PR

  • asserts that a Tree\Visitor\PreOrderVisitor walks a tree in pre-order
  • asserts that a Tree\Visitor\PostOrderVisitor walks a tree in post-order

Follows https://twitter.com/localheinz/status/633893849392377856.

Walking it

@localheinz localheinz force-pushed the feature/walker branch 3 times, most recently from efd600a to 7eaa585 Compare August 19, 2015 13:37
@nicmart
Copy link
Owner

nicmart commented Aug 19, 2015

Nice, but in the library we already have a traversal for the leaves implemented through a visitor, the YieldVisitor. For consistency I would like to mantain the same pattern. Can you please make the walkers visitors?

@localheinz
Copy link
Collaborator Author

@nicmart

👍 Done!

@nicmart
Copy link
Owner

nicmart commented Aug 19, 2015

Great, thanks! Tomorrow I'll release a new version with the changes.

nicmart added a commit that referenced this pull request Aug 19, 2015
Enhancement: Implement pre- and post-order visitors
@nicmart nicmart merged commit 2a93648 into nicmart:master Aug 19, 2015
@localheinz localheinz deleted the feature/walker branch August 19, 2015 22:33
This was referenced Aug 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants