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

Simplify ZSink::fold code #8208

Merged
merged 1 commit into from Jun 18, 2023
Merged

Conversation

guizmaii
Copy link
Member

No description provided.

Comment on lines -924 to -926
def foldChunkSplit(z: S, chunk: Chunk[In])(
contFn: S => Boolean
)(f: (S, In) => S): (S, Chunk[In]) = {
Copy link
Member Author

@guizmaii guizmaii Jun 18, 2023

Choose a reason for hiding this comment

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

No need to pass contFn and f here as they are the same as the ones already present in the surrounding context.
Not having to pass them here makes it more explicit that you're actually using the "global" ones

@adamgfraser adamgfraser merged commit f5d6da9 into zio:series/2.x Jun 18, 2023
22 checks passed
@guizmaii guizmaii deleted the simplify_ZSinK_fold branch August 17, 2023 16:12
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.

None yet

2 participants