Created
August 16, 2019 07:59
-
-
Save zarinfam/8bfe3e6b1333053a0525a13803cf2635 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
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
trait Monad[F[_]] { | |
def pure[A](value: A): F[A] | |
def flatMap[A, B](value: F[A])(func: A => F[B]): F[B] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment