Closures that Share Bindings
> (define my-stack-closures (make-stack))
> ((car my-stack-closures) 'apple)
> ((car my-stack-closures) 'pear)
> ((cdr my-stack-closures))
pear
> ((cdr my-stack-closures))
apple
> ((cdr my-stack-closures))
()
Previous slide
Next slide
Back to first slide
View graphic version