Dictionary    Maps    Thesaurus    Translate    Advanced >   


Tip: Click Thesaurus above for synonyms. Also, follow synonym links within the dictionary to find definitions from other sources.

1. The Free On-line Dictionary of Computing (30 December 2018)
call-with-current-continuation
call/cc

    (call/cc) A Lisp control function that
   implements the continuation passing style of programming.

   In continuation passing style (CPS), every function f takes an
   extra final argument k called the "continuation".  The
   continuation is itself a function and represents the rest of the
   program.  Instead of just returning a value in the normal way, f
   passes it as an argument to k and returns the result of that.

   call/cc takes a function f as its argument and calls f, passing it
   the current continuation k.  It thus allows a CPS function to be
   called in a non-CPS (direct) context.

   For example, if 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.

   [Is this correct?]

   (2014-09-24)


Common Misspellings >
Most Popular Searches: Define Misanthrope, Define Pulchritudinous, Define Happy, Define Veracity, Define Cornucopia, Define Almuerzo, Define Atresic, Define URL, Definitions Of Words, Definition Of Get Up, Definition Of Quid Pro Quo, Definition Of Irreconcilable Differences, Definition Of Word, Synonyms of Repetitive, Synonym Dictionary, Synonym Antonyms. See our main index and map index for more details.

©2011-2024 ZebraWords.com - Define Yourself - The Search for Meanings and Meaning Means I Mean. All content subject to terms and conditions as set out here. Contact Us, peruse our Privacy Policy