Skip to content

Instantly share code, notes, and snippets.

@TWolverson
Created August 1, 2014 17:43
Show Gist options
  • Save TWolverson/d76bbc8cba74ca0ec004 to your computer and use it in GitHub Desktop.
Save TWolverson/d76bbc8cba74ca0ec004 to your computer and use it in GitHub Desktop.
type node =
| A
| B
| Empty
| NotANode
let delta centre satellite =
// where delta and centre are identical, +1
// where delta and centre are A/B or B/A, -1
// any other combination, 0
// What is the syntax for matching an option against an option?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment