diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-01-27 21:52:21 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-01-27 21:52:21 +0400 |
commit | ec540fa25cf63ad27efe718680637957f7b9e154 (patch) | |
tree | f22e551eb2b44d0193b02c0b622cd04aaeafdf7e | |
parent | 449ee465f63e7a0e418342914e9ab1ecaf4d47b1 (diff) | |
download | gcd-ec540fa25cf63ad27efe718680637957f7b9e154.tar.gz |
Fixed stupid error
-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 |