Skip to content

insert or update for iterative and recursive insert #8

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

albankurti
Copy link

I find it useful to have a new api insert_or_update so we can update with a function the type T with one go, else we have to see if we can find it, and if not then insert, overall it's slower. I'm using it for personal reasons but I though it could be useful for others as well. Hopefully I have not missed a functionality that does this already on the crate.

@albankurti
Copy link
Author

Sorry reordering the importing of Node and HeapNode, no idea why that happened..

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.

1 participant