Skip to content

Instantly share code, notes, and snippets.

@SteveGilham
Created April 26, 2015 14:08
Show Gist options
  • Save SteveGilham/e5b51f35e867d277c798 to your computer and use it in GitHub Desktop.
Save SteveGilham/e5b51f35e867d277c798 to your computer and use it in GitHub Desktop.
Monad to function
let Apply m1 m2
= m1 >>= fun f ->
m2 >>= fun x ->
Return (f x);;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment