Created
February 5, 2010 16:57
-
-
Save sroccaserra/295969 to your computer and use it in GitHub Desktop.
Emacs Lisp loop usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun fibbo (n) | |
(if (<= n 1) | |
1 | |
(+ (fibbo (- n 1)) | |
(fibbo (- n 2))))) | |
(loop for i from 10 to 20 | |
collect (list i (fibbo i))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment