Skip to content

Instantly share code, notes, and snippets.

@syntacticsugar
Created September 17, 2014 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syntacticsugar/2c9dfcb81fd4062ae8ce to your computer and use it in GitHub Desktop.
Save syntacticsugar/2c9dfcb81fd4062ae8ce to your computer and use it in GitHub Desktop.
tutorial from Nicky Bicky
type Maybe a = Nothing | Just a
type Option a = None | Some a
type Result a = Failure | Success a
max [] ----> Failure
max [1,2,3] -----> Success 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment