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

IdentityFlatten#when and IdentityFlatten#unless. #1453

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

SimY4
Copy link
Contributor

@SimY4 SimY4 commented Jan 15, 2025

Small addition to IdentityFlatten syntax allowing conditionally avoiding effect execution.

The signature is consistent with ZPure#when and ZPure#unless

@SimY4 SimY4 requested a review from a team as a code owner January 15, 2025 03:03
@SimY4 SimY4 force-pushed the when-unless-identity-flatten branch from 1b8f538 to 6bb48cf Compare January 15, 2025 03:33
Copy link
Member

@sideeffffect sideeffffect left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@sideeffffect sideeffffect merged commit a69f4c3 into zio:series/2.x Jan 15, 2025
20 checks passed
@SimY4 SimY4 deleted the when-unless-identity-flatten branch January 15, 2025 19:46
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