projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1996-01-08 20:28:12 by partain]
[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)