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 groupByFunction method #34

Closed
roberto-butti opened this issue Oct 14, 2024 · 1 comment
Closed

Implement groupByFunction method #34

roberto-butti opened this issue Oct 14, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest

Comments

@roberto-butti
Copy link
Contributor

Implement a groupByFunction method that accepts a closure as an input parameter, following the same logic that JavaScript’s Object.groupBy() uses. The idea is apply a callback (closure) to the Data, that defines how the elements should be grouped, and then return an associative array where the keys are the grouping results and the values are arrays of items that belong to each group.

@roberto-butti roberto-butti added enhancement New feature or request good first issue Good for newcomers hacktoberfest labels Oct 14, 2024
@roberto-butti roberto-butti self-assigned this Oct 14, 2024
@roberto-butti
Copy link
Contributor Author

closed by #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant