Skip to content

Instantly share code, notes, and snippets.

@cohalz
Created January 19, 2014 14:42
Show Gist options
  • Save cohalz/8505840 to your computer and use it in GitHub Desktop.
Save cohalz/8505840 to your computer and use it in GitHub Desktop.
let rec gcd (m,n) =
if m mod n = 0 then n else gcd(n,m mod n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment