-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 FlatMap.forEffect #1537
Add FlatMap.forEffect #1537
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1537 +/- ##
==========================================
+ Coverage 92.42% 93.04% +0.61%
==========================================
Files 249 249
Lines 3974 3980 +6
Branches 131 139 +8
==========================================
+ Hits 3673 3703 +30
+ Misses 301 277 -24
Continue to review full report at Codecov.
|
def forEffect[A, B](fa: F[A])(fb: F[B]): F[A] = flatMap(fa)(a => map(fb)(_ => a)) | ||
|
||
/** Alias for [[forEffect]]. */ | ||
@inline final def <<[A, B](fa: F[A])(fb: F[B]): F[A] = forEffect(fa)(fb) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is the only missed test coverage, I think it's fine.
👍 |
See #1535.