Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun fib-loop (n)
- (cons 1
- (loop with a = 0 and b = 1
- repeat n
- do (psetf a b b (+ a b))
- collect b)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement