Created
December 21, 2014 10:25
-
-
Save ijp/397d82c0cc819c56b31a to your computer and use it in GitHub Desktop.
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
(setq fib (lambda () | |
(let* ((b (cdddr fib)) | |
(s (apply '+ b))) | |
(setcdr (cddr fib) (list (cadr b) s)) | |
(throw 'result s)) | |
0 1)) | |
(defun fib () (catch 'result (funcall fib))) | |
(fib) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment