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

bindEither in TaskEither #58

Merged
merged 3 commits into from Oct 9, 2022
Merged

bindEither in TaskEither #58

merged 3 commits into from Oct 9, 2022

Conversation

SandroMaglione
Copy link
Owner

This PR adds the bindEither method to TaskEither.

As suggested in #49 (close #49), bindEither takes an Either that gets converted to TaskEither and chained:

/// Chain [Either] to [TaskEither]
TaskEither<String, int> binding =
    TaskEither<String, String>.of("String").bindEither(Either.of(20));

@SandroMaglione SandroMaglione added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 9, 2022
@SandroMaglione SandroMaglione merged commit 4d37130 into main Oct 9, 2022
@SandroMaglione SandroMaglione deleted the from-either branch October 9, 2022 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TaskEither: Operator that accepts Either (Sync)
1 participant