doc.txt

Tail

_Tail_
_tail_

This collection provides one file:

 _tail.ss_: special form for tail-context continuations

This library provides a syntax for capturing a continuation and binding it to a
variable that, when applied, evaluates its subexpression in tail position with
respect to its parent expression.

======================================================================

> (let-tail-continuation k body1 body2 ...)
> (let/tc k body1 body2 ...)

A syntax for capturing the current continuation and binding it to the variable
k. The variable is in scope for the evaluation of the body expressions. The
difference between _let/tc_ and _let/cc_ is that applications of the
continuation variable occur in tail position.