chickadee » chicken » base » let*-values

(let*-values (((NAME ...) VALUEEXP) ...) BODY ...)syntax

Binds multiple variables to the result values of VALUEEXP .... The variables are bound sequentially. Like let-values, the (NAME ...) expression can be any basic lambda list (dotted tail notation is supported).

This is also part of SRFI-11 and is also compatible with the definition from the R7RS (scheme base) library.

(let*-values (((a b) (values 2 3))
              ((p) (+ a b)) )
  p)                               ==> 5