|The capturing of continuations|
It is now time to introduce the Scheme primitive that allows us to capture a continuation.
Scheme provides a primitive that captures a continuation of an expression E in a context C
The primitive is called call-with-current-continuation, or call/cc as a short alias
call/cc takes a parameter, which is a function of one parameter.
The parameter of the function is bound to the continuation, and the body of the function is E
Use of call/cc and capturing of continuations.