Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Fix issue 355 count frequency method to iterable #356

Conversation

pvlKryu
Copy link

@pvlKryu pvlKryu commented Aug 2, 2024

[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.

Relevant Issues:
This PR addresses Issue dart-lang/core#679.

Thank you!

Copy link

google-cla bot commented Aug 2, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@pvlKryu pvlKryu marked this pull request as draft August 2, 2024 17:01
@pvlKryu pvlKryu closed this Aug 2, 2024
@pvlKryu pvlKryu deleted the fix-issue-355-countFrequency-method-to-Iterable branch August 2, 2024 17:02
@pvlKryu
Copy link
Author

pvlKryu commented Aug 3, 2024

I've closed this PR due to the google-cla not signed.

here is the actual PR dart-lang/core#679

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant