Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
1,519,096,185 visitors served.
?
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

call-with-current-continuation

   Also found in: Wikipedia 0.12 sec.
(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.


?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in
No references found
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2009 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. Terms of Use.