projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
43a7cf44ed88e4017706b9fb2195d1de0b79cd36
[ghc-hetmet.git]
/
ghc
/
CONTRIB
/
pphs
/
docs
/
leftindent1.hs
1
gcd :: Int -> Int -> Int
2
gcd x y = gcd' (abs x) (abs y)
3
where gcd' x 0 = x
4
gcd' x y = gcd' y (x `rem` y)