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

Adding reverse() to IndexMap & IndexSet #128

Merged
merged 4 commits into from
Jun 9, 2020
Merged

Adding reverse() to IndexMap & IndexSet #128

merged 4 commits into from
Jun 9, 2020

Conversation

linclelinkpart5
Copy link
Contributor

@linclelinkpart5 linclelinkpart5 commented Jun 8, 2020

Closes #127.

Here's my work so far, just basing it off of what's done in sort_by(). Happy to include the more efficient re-indexing as you suggested, @cuviper! Just need to learn how.

@linclelinkpart5 linclelinkpart5 changed the title Adding remove() to IndexMap & IndexSet #127 Adding remove() to IndexMap & IndexSet Jun 8, 2020
src/map.rs Show resolved Hide resolved
@cuviper cuviper changed the title Adding remove() to IndexMap & IndexSet Adding reverse() to IndexMap & IndexSet Jun 8, 2020
@bluss
Copy link
Member

bluss commented Jun 8, 2020

Please update the PR description to close the feature request with a keyword https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword thanks

Copy link
Member

@cuviper cuviper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@cuviper cuviper merged commit 8c9df6b into indexmap-rs:master Jun 9, 2020
@bluss
Copy link
Member

bluss commented Jun 9, 2020

Special thanks for using quickcheck

@linclelinkpart5
Copy link
Contributor Author

Thanks all! And no problem @bluss, it was fun to work with. It inspired me to look into it for testing my current project, so it's a win-win!

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.

Adding .reverse() method to IndexMap & IndexSet
3 participants