A Simple Closure
(setq closure
(let ((list '(one two three four five)))
#’(lambda () (pop list))))
#<Interpreted Closure (unnamed) @ #x2083818a>
(funcall closure)
ONE
(funcall closure)
TWO
(funcall closure)
THREE
Previous slide
Next slide
Back to first slide
View graphic version