]> git.rkrishnan.org Git - sicp.git/blob - src/sicp/ex2_36.scm
Solution to 4.33. This had been difficult to get right, though conceptually it was
[sicp.git] / src / sicp / ex2_36.scm
1 (define (foobar x)
2   (cond
3    ((= x 1) 1)
4    ((= x 2) 1)
5    (else (+ (foobar (- x 1))
6             (foobar (- x 2))))))