|[ << ]||[ < ]||[ Up ]||[ > ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
7.5.10 SRFI-11 - let-values
This module implements the binding forms for multiple values
let*-values. These forms are similar to
let* (see section Local Variable Bindings), but they support
binding of the values returned by multiple-valued expressions.
(use-modules (srfi srfi-11)) to make the bindings
(let-values (((x y) (values 1 2)) ((z f) (values 3 4))) (+ x y z f)) ⇒ 10
let-values performs all bindings simultaneously, which means that
no expression in the binding clauses may refer to variables bound in the
same clause list.
let*-values, on the other hand, performs the
bindings sequentially, just like
let* does for single-valued
This document was generated on February 3, 2012 using texi2html 5.0.