6 seconds | Name binding, Recursion, Iteration, and Continuations - slide 40 : 42 |
Context C, capturing, and escape call | Value |
(+ 5 (call/cc (lambda (e) (* 4 (e 10)))) ) | 15 |
(cons 1 (call/cc (lambda (e) (cons 2 (cons 3 (e 'x))))) ) | (1 . x) |
(define x 5) (if (= 0 x) 'undefined (call/cc (lambda (e) (remainder (* (+ x 1) (- x (e 111))) x))) ) | 111 |