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

feature/add fold* to EitherOps #1234

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

iyfedorov
Copy link
Contributor

Hello! I didn't find any impl for plain Either.fold so i suggest this

"EitherFOps#foldF" should {
"map left or right to F[C]" in {
defaultRight.foldF(s => Some(s.length), c => Some(c * c)) mustBe Some(16)
defaultLeft.foldF(c => Some(c * c), s => Some(s.length)) mustBe Some(16)
Copy link
Member

Choose a reason for hiding this comment

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

let's add a couple of test cases with c => None

@FunFunFine FunFunFine merged commit 1c3699f into tofu-tf:master Apr 9, 2024
9 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