next up previous
Next: 4 Expressing Recursion as Up: 3 Continuations Previous: 3.1 Scheme Example

3.2 J Example

Suppose e is the expression 5 * 4 + 5 and f is the subexpression 4 + 5, then the continuation of f in e is

monad define '5 * y.'

and

(monad define '5 * y.')  4 + 5

produces the same result of 45 as does

5 * 4 + 5


next up previous
Next: 4 Expressing Recursion as Up: 3 Continuations Previous: 3.1 Scheme Example
2002-11-26