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

Implement std traits for Multimap and extend it #2

Closed
8 tasks done
pyfisch opened this issue Nov 24, 2015 · 2 comments
Closed
8 tasks done

Implement std traits for Multimap and extend it #2

pyfisch opened this issue Nov 24, 2015 · 2 comments

Comments

@pyfisch
Copy link
Contributor

pyfisch commented Nov 24, 2015

Missing traits:

There are more functions not implemented for MultiMap which are implemented for HashMap but they are useful here too. An example is the values function.

C++ also provides a multimap and maybe we can borrow some ideas from them. For example iterating over the values of a key would be useful.

There is also an issue to add a multimap to rust.

@pyfisch pyfisch changed the title Implement std traits for Multimap Implement std traits for Multimap and extend it Nov 24, 2015
@havarnov
Copy link
Owner

I agree that values could be useful, maybe open a new issue for that? We have to decide if the .values() returns a vector of vectors or just the first value in the value vectors.

@havarnov
Copy link
Owner

For example iterating over the values of a key would be useful.

Isn't that already implemented for the Vec returned by get_vec()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants