[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:
Added countFrequency extension method to lib/src/iterable_extensions.dart
Implemented comprehensive tests for the countFrequency method in test/extensions_test.dart. The tests cover various subclasses of Iterable including List, Set, and Queue.
[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!