Skip to content

Instantly share code, notes, and snippets.

@SteveGilham
Created April 26, 2015 14:03
Show Gist options
  • Save SteveGilham/4b84d12c9db342eb0a3b to your computer and use it in GitHub Desktop.
Save SteveGilham/4b84d12c9db342eb0a3b to your computer and use it in GitHub Desktop.
List monad operations
let ReturnList x = [x]
let FailList = []
let (>>=*) m f = List.concat (List.map f m);;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment