Skip to content

Add or_default method to map::Entry #77

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

Merged
merged 1 commit into from
Aug 6, 2018
Merged

Conversation

mexus
Copy link
Contributor

@mexus mexus commented Aug 3, 2018

P for Parity :) In response to #76 (comment)

@mexus
Copy link
Contributor Author

mexus commented Aug 3, 2018

I didn't know you are looking for the parity with the std's hash_map::Entry, otherwise I would have done it from the very beginning :)

@cuviper
Copy link
Member

cuviper commented Aug 6, 2018

Oh, there actually is #19 tracking this, and or_default is on the list. We should update that.

Anyway, thanks!

@cuviper cuviper merged commit d838170 into indexmap-rs:master Aug 6, 2018
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.

2 participants