-
Notifications
You must be signed in to change notification settings - Fork 158
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
Feature request: Retain Iterator #11
Comments
Since this is in the interest of demoing it for libstd, it makes sense. It's not good if we have an iterator that doesn't adhere to the element order of the map, though. |
.retain() now returns an iterator with the removed items closes indexmap-rs#11
.retain() now returns an iterator with the removed items closes indexmap-rs#11 Also cleaned up some match statements.
Removing the breaking label because retain() should stay as it is (compatible with HashMap), but we can add new methods. |
The current equivalent in |
We'll let #242 track |
Have
retain
return a iterator over the extracted values, similar toDrain
in the standard library, or my PreRFC.It seems like a relatively simple change, so if you're interested I could probably get it done and shoot you a PR later this week.
The text was updated successfully, but these errors were encountered: