From 6a4656f85a69d0e2b4ded89674e3fe54e87e2222 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Wed, 11 Jun 2014 23:49:03 -0400 Subject: [PATCH] Add missing GCD example in 1.2.5 --- 1-2.org | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/1-2.org b/1-2.org index 8c74c25..c14c6ea 100644 --- a/1-2.org +++ b/1-2.org @@ -375,7 +375,13 @@ layout: org #+END_SRC * 1.2.5: Greatest Common Divisors - + #+begin_src scheme :tangle yes + (define (gcd a b) + (if (= b 0) + a + (gcd b (remainder a b)))) + + #+end_src ** Exercise 1.20 The process that a procedure generates is of course dependent on the rules used by the interpreter. As an