Differences

This shows you the differences between two versions of the page.

assignment-8 [2016/03/11 11:26]
jhemann
assignment-8 [2016/03/11 11:28] (current)
jhemann
Line 101: Line 101:
  (lambda (n)   (lambda (n)
    (cond     (cond
-      [(and (positive? n) (< n 2)) n]+      [(and (not (negative? n)) (< n 2)) n]
      [else (+ (fib (sub1 n)) (fib (sub1 (sub1 n))))])))       [else (+ (fib (sub1 n)) (fib (sub1 (sub1 n))))])))
</code> </code>
 

assignment-8.txt · Last modified: 2016/03/11 11:28 by jhemann