projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
aac11d82e8088dc585e38b5c5bdb1ebd7168e749
[ghc-hetmet.git]
/
ghc
/
CONTRIB
/
pphs
/
docs
/
Haskell_leftindent1.tex
1
\begin{verbatim}
2
gcd :: Int -> Int -> Int
3
gcd x y = gcd' (abs x) (abs y)
4
where gcd' x 0 = x
5
gcd' x y = gcd' y (x `rem` y)
6
\end{verbatim}
7