-
Notifications
You must be signed in to change notification settings - Fork 167
Question about ordered remove #90
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
Comments
Just to be clear, the relative order is preserved, but the indexes of all entries after the removed one will be shifted. Doing otherwise would require leaving a hole, which we decided against. I think we should add an ordered remove method though. Within the crate, we should be able to fixup the trailing items without rehashing them, so it will be faster that what you have. I suggest we deprecate |
Having an order-preserving remove is all that's stopping me from using this crate right now, would be perfect if that gets added! |
@cuviper Hi, Do order-preserving remove feature already added or not yet please ? If not, is there any faster alternative function to preserve the orders ? |
I wanted to remove an element without perturbing the order of the remaining elements, and used something like the code below. Is there a better way than this? (In my case it is not really that important, this works just fine for me.)
The text was updated successfully, but these errors were encountered: