Call-with-current-continuation

(call/cc) A Lisp control function. call/cc takes a function f as its argument. It calls f and passes it the current continuation, which is itself a function, k. The continuation represents the context of the call to call/cc. It is a function which 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:

	(defun f (k)
 	  (apply k 1)
 	  (apply k 2)
 	  3)
 
 	(print (call/cc f))
Will print 1 2 3.

(29 Nov 1994)