![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Simulation of other Paradigms and Continuations - slide 26 : 43 |
Context C and expression E | The continuation of E in C |
(+ 5 (* 4 3)) | (lambda (E) (+ 5 E)) |
(cons 1 (cons 2 (cons 3 '()))) | (lambda (E) (cons 1 (cons 2 (cons 3 E)))) |
(define x 5) (if (= 0 x) 'undefined (remainder (* (+ x 1) (- x 1)) x)) | (lambda (E) (remainder (* E (- x 1)) x)) |