Skip to content

Instantly share code, notes, and snippets.

@zarinfam
Created August 16, 2019 07:59
Show Gist options
  • Save zarinfam/8bfe3e6b1333053a0525a13803cf2635 to your computer and use it in GitHub Desktop.
Save zarinfam/8bfe3e6b1333053a0525a13803cf2635 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
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