[plt-scheme] passing multiple "values" between functions

From: Martin DeMello (martindemello at gmail.com)
Date: Mon Apr 6 03:23:17 EDT 2009

On Mon, Apr 6, 2009 at 12:36 PM, Matthias Felleisen
<matthias at ccs.neu.edu> wrote:
>
> Here are two alternatives that work:

Thanks. I infer from the failure of the bar example

> (define (bar inp)
>  (let-values ([(x y) inp])
>    (list x y)))

that there is no "values" object that you can pass around till you're
ready to unpack it. Do values offer any advantage over using lists and
let-match?

martin


Posted on the users mailing list.