call-with-current-continuation

Computing Dictionary

call-with-current-continuation definition

Lisp, programming
(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.
(2001-04-27)

The Free On-line Dictionary of Computing, © Denis Howe 2010 http://foldoc.org
Cite This Source
Explore Dictionary.com
Previous Definition: call-waiting
Next Definition: call/cc
More from Thesaurus.com
Synonyms and Antonyms for call-with-current-continuation
More from Reference.com
Search for articles containing call-with-current-continuation
00:10
Call-with-current-continuation is always a great word to know.
So is ninnyhammer. Does it mean:
a scrap or morsel of food left at a meal.
a fool or simpleton; ninny.
Dictionary.com Word FAQs

Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.

Copyright © 2013 Dictionary.com, LLC. All rights reserved.
  • Please Login or Sign Up to use the Recent Searches feature
FAVORITES
RECENT