Skip to content

Enhancement/Feature: port upstream IndexMap methods such as shift_remove #557

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
prutschman opened this issue Apr 24, 2025 · 0 comments
Open

Comments

@prutschman
Copy link
Contributor

In #321 it was mentioned that there were upstream methods from IndexMap that hadn't been ported yet, shift_remove in that particular case. I don't know if this is important enough to be considered for 1.0, but I thought I'd re-surface the issue for discussion.

retain being in-order does mean there are workarounds; I'm currently simulating shift_remove_index(0) with a combination of .first and .retain(|key| key != first_key)

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