next up previous
Next: 3.2 J Example Up: 3 Continuations Previous: 3 Continuations

3.1 Scheme Example

Suppose e is the expression (* 2 (+ 3 4)) and f is the subexpression (+ 3 4), then the continuation of f in e is

(lambda(n) (* 2 n))

and

((lambda(n) (* 2 n)) (+ 3 4))

produces the same result of 14 as does

(* 2 (+ 3 4))


next up previous
Next: 3.2 J Example Up: 3 Continuations Previous: 3 Continuations
2002-11-26