Created
April 26, 2015 13:57
-
-
Save SteveGilham/ccc46c41505c5c31c56d to your computer and use it in GitHub Desktop.
Option monad example
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
let result = option { | |
let! y = f x | |
let! z = g y | |
return! h z};; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment