Skip to content

Instantly share code, notes, and snippets.

@avar
Created March 1, 2010 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avar/318206 to your computer and use it in GitHub Desktop.
Save avar/318206 to your computer and use it in GitHub Desktop.
(defvar mysubs nil)
(dolist (i (loop for n from 1 to 10 collect n))
(push #'(lambda () i) mysubs))
(dolist (sub (reverse mysubs))
(print (funcall sub)))
1
2
3
4
5
6
7
8
9
10
NIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment