Created
May 8, 2013 20:28
-
-
Save stew/5543392 to your computer and use it in GitHub Desktop.
This file contains 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
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