[plt-scheme] Multiple values

From: Gregory Woodhouse (gregory.woodhouse at sbcglobal.net)
Date: Mon Feb 20 17:10:20 EST 2006

On Feb 20, 2006, at 1:11 PM, Robby Findler wrote:

> So, if you were to think of this slightly
> more generally, you might compare this:
>
>   (let ([x (compute-x ...)]
>         [y (compute-y ...)])
>     (+ x y))
>
> to this:
>
>   (let-values ([(x y) (compute-both-x-and-y ...)])
>     (+ x y))
>
> hth,
> Robby

Yes, that makes sense. Thanks.

===
Gregory Woodhouse
gregory.woodhouse at sbcglobal.net

"Nothing is as powerful than an idea
whose time has come."
-- Victor Hugo





Posted on the users mailing list.