Word:

call-with-current-continuation

(Lisp, programming)call-with-current-continuation - (call/cc) A Lisp control function that takes a function f as its argument and calls f, passing it the current continuation, which is itself a function, k. k, which represents the context of the call to call/cc, takes the result of call/cc (which is the result of f) and returns the final result of the whole program. Thus if, for example, the final result is to print the value returned by call/cc then anything passed to k will also be printed.

E.g, in Scheme:

(define (f k) (k 1) (k 2) 3)

(display (call-with-current-continuation f))

Will display 1.
Browse
call the tune
call to order
Call to the bar
Call Unix
call up
call waiting
call-back
call-board
call-by-name
call-by-need
call-by-reference
call-by-value
call-by-value-result
call-in
Call-Level Interface
call-out
-- call-with-current-continuation --
call/cc
Calla
calla lily
Calla palustris
callable
Callas
Callat
callathump
callback
Calle
called
called for
callee
Caller
caller ID
caller-out
Definitions Index: # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

About this site and copyright information - Online Dictionary Home