Created
September 3, 2015 11:04
-
-
Save blouerat/888b28ee33a3cae1b15b to your computer and use it in GitHub Desktop.
OptionT.foldMapF
This file contains hidden or 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 foldMapF[F[_]: Monad, A, B](o: OptionT[F, A], f: A => B)(implicit M0: Monoid[B]): F[B] = o.fold(f, M0.zero) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment