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

Provide mapOrAccumulate for NonEmptySet #3489

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

tPl0ch
Copy link
Contributor

@tPl0ch tPl0ch commented Sep 17, 2024

We are using the NonEmptySet abstraction pretty heavily, and are constantly missing mapOrAccumulate on it. While it's possible to convert to a NonEmptyList, run the accumulating map, and then convert back, this seems a very inefficient way to achieve this.

@serras
Copy link
Member

serras commented Sep 21, 2024

This looks quite useful to me, thanks! :)

Copy link
Member

@serras serras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review, thanks very much!

@serras serras merged commit d6073dd into arrow-kt:main Oct 3, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants