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

[extras-cats] Add innerFlatMapF extension method to F[Option[A]] #352

Closed
kevin-lee opened this issue Mar 10, 2023 · 0 comments · Fixed by #353
Closed

[extras-cats] Add innerFlatMapF extension method to F[Option[A]] #352

kevin-lee opened this issue Mar 10, 2023 · 0 comments · Fixed by #353
Assignees
Labels
task Task
Milestone

Comments

@kevin-lee
Copy link
Owner

Task

Summary

[extras-cats] Add innerFlatMapF extension method to F[Option[A]]

Project Details

Version: 0.35.0

Description

val foa: F[Option[A]] = ...
foa.innerFlatMapF(A => F[Option[B]]) // F[Option[B]]
val foa: IO[Option[Int]] = IO.pure(1)
// IO[Option[Int]] = IO(Some(1))
foa.innerFlatMapF(a => IO.pure((a + 999).some))
// IO[Option[Int]] = IO(Some(1000))
@kevin-lee kevin-lee added the task Task label Mar 10, 2023
@kevin-lee kevin-lee added this to the milestone37 milestone Mar 10, 2023
@kevin-lee kevin-lee self-assigned this Mar 10, 2023
kevin-lee added a commit that referenced this issue Mar 10, 2023
Close #352 - [`extras-cats`] Add `innerFlatMapF` extension method to `F[Option[A]]`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant