dart-lang / collection

The collection package for Dart contains a number of separate libraries with utility functions and classes that makes working with collections easier.
https://pub.dev/packages/collection
BSD 3-Clause "New" or "Revised" License
372 stars 86 forks source link

Fix issue 355 count frequency method to iterable #357

Open pvlKryu opened 1 month ago

pvlKryu commented 1 month ago

[yes] I’ve reviewed the contributor guide and applied the relevant portions to this PR.

Description: This Pull Request introduces a new extension method countFrequency for the Iterable class. The countFrequency method returns a map where the keys are the unique elements of the iterable and the values are the counts of those elements. This addition provides an easy and efficient way to count the frequency of elements in any iterable.

Changes:

Relevant Issues: This PR addresses Issue #355.

Thank you!

pvlKryu commented 1 week ago

@mateusfccp Hey Mateus, can you approve?

pvlKryu commented 1 week ago

@kevmoo can you please review this one?

mateusfccp commented 1 week ago

@mateusfccp Hey Mateus, can you approve?

I can't, I'm not a member of the team.