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

Changing the parent of a leaf with multiple descendants #14

Open
alabama opened this issue Apr 30, 2020 · 3 comments
Open

Changing the parent of a leaf with multiple descendants #14

alabama opened this issue Apr 30, 2020 · 3 comments

Comments

@alabama
Copy link

alabama commented Apr 30, 2020

Following usecase:
moving

What would be the best approach with the functions provided by hierarch?
It would not be enough to just change the path of C you would need to update all it's descendants (not only the children) to have the right ancestors.
Any examples?

@alabama alabama changed the title Manipulating Changing the parent of a leaf with multiple descendants Apr 30, 2020
@fahchen
Copy link
Member

fahchen commented Apr 30, 2020

That’s a good scenario. Maybe we should provide some common mutation functions.

@alabama
Copy link
Author

alabama commented May 25, 2020

Yeah I like the idea! Any updates on that?

@dyyce
Copy link

dyyce commented Jun 18, 2020

+1 on that

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

No branches or pull requests

3 participants