diff options
| -rw-r--r-- | gcd.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,7 +1,7 @@ import System.Environment(getArgs) gcd2 a 0 = a -gcd2 a b = gcd2 b (rem b a) +gcd2 a b = gcd2 b (a `rem` b) gcdn n = foldl1 gcd2 n |
![]() |
index : gcd | |
| The Greatest Common Divisor in many languages and tools | Igor Pashev |
| summaryrefslogtreecommitdiff |
| -rw-r--r-- | gcd.hs | 2 |
@@ -1,7 +1,7 @@ import System.Environment(getArgs) gcd2 a 0 = a -gcd2 a b = gcd2 b (rem b a) +gcd2 a b = gcd2 b (a `rem` b) gcdn n = foldl1 gcd2 n |