Creating Closures
To evaluate a function #'(lambda (x) e), create a closure out of the function and the current environment and return a pointer to the closure.
y : 4
x : 2
nil
current env
(lambda (x) e)
Result
I’ll draw closures using yellow.
Previous slide
Next slide
Back to first slide
View graphic version