Skip to content

Instantly share code, notes, and snippets.

@rsayers
Created January 16, 2010 21:48
Show Gist options
  • Save rsayers/279031 to your computer and use it in GitHub Desktop.
Save rsayers/279031 to your computer and use it in GitHub Desktop.
(defun fib (n)
(if(or (= 0 n) (= 1 n)) n
(+ (fib (- n 1)) (fib (- n 2)))))
(defun start ()
(loop for x from 0 to 35 collect
(format t "n = ~d => ~d~%" x (fib x))))
(start)
(quit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment