index
:
gcd
master
The Greatest Common Divisor in many languages and tools
Igor Pashev
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
gcd.clj
2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcd.clj b/gcd.clj
index 7cee3c3..5296997 100644
--- a/
gcd.clj
+++ b/
gcd.clj
@@ -12,7 +12,7 @@
(defn gcd2 [a b]
(if (zero? b)
a
- (gcd2 b (mod a b))))
+ (recur b (mod a b))))
(defn gcdn [aa] (reduce gcd2 aa))