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

Limit contains method to a set depth #171

Open
golharam opened this issue Oct 12, 2020 · 0 comments
Open

Limit contains method to a set depth #171

golharam opened this issue Oct 12, 2020 · 0 comments

Comments

@golharam
Copy link

Right now, I see .contains() on the tree will search the tree for a given node. Suppose I only want to search the immediate children of a node? Based on what I can tell, I have to get the children of the node, then iterate over them to find the matching child, if any. It would be nice to have a depth option on .contains() or a .find() method on a Node to search the immediate children.

@liamlundy liamlundy changed the title Feature request Limit contains method to a set depth Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants