Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defparameter *list* nil)
- (loop :for i :in (list 1 2 3 4 5)
- :do (push (lambda () (format t "~a~%" i))
- *list*))
- (loop :for fn :in *list* :do (funcall fn))
- ; prints:
- ; 5
- ; 5
- ; 5
- ; 5
- ; 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement