-
Notifications
You must be signed in to change notification settings - Fork 31
Implement frequencies_as_map
#628
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
Conversation
|
9dc8104 to
0161271
Compare
|
|
Removed milestone, since this is not making 3.6. |
This reverts commit dc09301. Removed because we are not aiming for 100% compatibility with this PR.
2c62f84 to
15f068b
Compare
d868511 to
c19d362
Compare
|



Description
Implement
frequencies_as_mapwhich returns a map of frequencies of the items in the collection. The result is in the form{value: count}, wherevalueis always astring. For example,frequencies_as_map([1,3,5,7,9,9])returns:Pull request type
######################################
Reviewer checklist (the reviewer checks this part)
Module/Algorithm
Documentation checklist
collections.frequencies_as_mapfunction to count element occurrences in a list.