Skip to content

Instantly share code, notes, and snippets.

@staafl
Created February 12, 2014 08:54
Show Gist options
  • Save staafl/8952078 to your computer and use it in GitHub Desktop.
Save staafl/8952078 to your computer and use it in GitHub Desktop.
> let rec gcd = function
- | a 0 -> a
- | a b -> gcd b (a % b);;
| a 0 -> a
----^
stdin(29,5): error FS0039: The pattern discriminator 'a' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment