Created
July 5, 2019 18:06
-
-
Save djspiewak/ac3662db943425899f0b7c67b0609b77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def flatMap2[F[_]: Monad, A, B, C](fa: F[A], fb: F[B])(f: (A, B) => F[C]): F[C] = | |
fa.flatMap(a => fb.flatMap(b => f(a, b))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment