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

Add functions to remove elements from an rtree #37

Open
patricoferris opened this issue Jan 10, 2024 · 0 comments
Open

Add functions to remove elements from an rtree #37

patricoferris opened this issue Jan 10, 2024 · 0 comments

Comments

@patricoferris
Copy link
Contributor

At the moment the library only has ways of constructing trees from functions like bulk-loading and inserting elements, it would be good to provide functions for removing elements from trees too. I was thinking of providing two functions:

  1. A function that removes elements based on equality (using the Repr equality function probably) that will return the removed element, the new tree or None if no element was found.
  2. A function that removes all elements contained in some envelope that has a similar return to (1).

There's some prior work in libraries like the Rust one see here for example although I didn't dig too deeply.

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

1 participant