Skip to content

Instantly share code, notes, and snippets.

@stew
Created May 8, 2013 20:28
Show Gist options
  • Save stew/5543392 to your computer and use it in GitHub Desktop.
Save stew/5543392 to your computer and use it in GitHub Desktop.
class OptionMonad extends Monad[Option] {
def point[A](a: A): Option[A] = ???
def map[A,B](fa: Option[A], f: A=>B) : Option[B] = ???
def flatMap[A,B](fa: Option[A]: f: A=>Option[B]): Option[B] = ???
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment