Documentation:Procedure call-with-current-continuation

From Gambit wiki

Revision as of 04:05, 11 October 2009 by Jonathan Arkell (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

User contributed comments, clarifications and examples

These procedures return a procedure that invokes the continuation, and not the continuations themselves.

   > (procedure? (call/cc (lambda (k) k)))
   > (continuation? (call/cc (lambda (k) k)))
   > (procedure? (continuation-capture (lambda (k) k)))
   > (continuation? (continuation-capture (lambda (k) k)))

Personal tools