Next: iklib syntaxes misc, Previous: iklib syntaxes increments, Up: iklib syntaxes [Index]
Sets the limit for the delimited continuation and evaluate the expression ?body.
Capture the current continuation up to the innermost reset
syntax use. The escape function of the delimited continuation is bound
to ?var, the the expression ?body is evaluated.
Examples:
(+ 1 (reset 2)) ⇒ 3 (reset (* 2 (shift K (K 3)))) ⇒ 6 (+ 1 (reset (* 2 (shift K (K 3))))) ⇒ 7 (reset (* 2 (shift K (K (K 2))))) ⇒ 8 (reset (* 2 (shift K (K (K (K 2)))))) ⇒ 16