Description Usage Arguments Details Author(s) Examples
A downward-only version of Scheme's call with current continuation.
1 | callCC(fun)
|
fun |
function of one argument, the exit procedure. |
callCC
provides a non-local exit mechanism that can be useful
for early termination of a computation. callCC
calls
fun
with one argument, an exit function. The exit
function takes a single argument, the intended return value. If the
body of fun
calls the exit function then the call to
callCC
immediately returns, with the value supplied to the exit
function as the value returned by callCC
.
Luke Tierney
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.