Next: , Previous: Eval, Up: Standards Support


7.4.12 Values

(require 'values)

— Function: values obj ...

values takes any number of arguments, and passes (returns) them to its continuation.

— Function: call-with-values thunk proc

thunk must be a procedure of no arguments, and proc must be a procedure. call-with-values calls thunk with a continuation that, when passed some values, calls proc with those values as arguments.

Except for continuations created by the call-with-values procedure, all continuations take exactly one value, as now; the effect of passing no value or more than one value to continuations that were not created by the call-with-values procedure is unspecified.