Skip to content

Instantly share code, notes, and snippets.

@leonmaia
Last active October 7, 2016 13:26
Show Gist options
  • Save leonmaia/09e7b1a682c323116c96cc28a64af338 to your computer and use it in GitHub Desktop.
Save leonmaia/09e7b1a682c323116c96cc28a64af338 to your computer and use it in GitHub Desktop.
trait M[A] {
def flatMap[B](f: A => M[B]): M[B]
}
def unit[A](x: A): M[A]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment