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

Add tap and unit to ZValidation #1299

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

nox213
Copy link
Contributor

@nox213 nox213 commented Apr 23, 2024

I think those two are useful for ZValidation.

@nox213 nox213 requested a review from a team as a code owner April 23, 2024 12:28
@CLAassistant
Copy link

CLAassistant commented Apr 23, 2024

CLA assistant check
All committers have signed the CLA.

@@ -334,6 +334,12 @@ sealed trait ZValidation[+W, +E, +A] { self =>
case (Success(w, _), Failure(w1, e1)) => Failure(w ++ w1, e1)
case (Success(w, a), Success(w1, b)) => Success(w ++ w1, f(a, b))
}

final def tap[W1 >: W, E1 >: E](f: A => ZValidation[W1, E1, Any]): ZValidation[W1, E1, A] =
Copy link
Member

Choose a reason for hiding this comment

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

I think methods are sorted alphabetically

Copy link
Member

Choose a reason for hiding this comment

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

Indeed, @nox213 would you mind putting them in the appropriate order? 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

6ea7901
Thanks for the review

@nox213 nox213 requested a review from sideeffffect April 24, 2024 02:38
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 3198020 into zio:series/2.x Apr 24, 2024
20 checks passed
@sideeffffect
Copy link
Member

Published in https://github.com/zio/zio-prelude/releases/tag/v1.0.0-RC24

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.

4 participants