[Prev][Next][Index][Thread]
Re: small Q
Bruce Hoult <bruce@hoult.org> wrote:
+---------------
| bstewart@bix.com wrote:
| > In fact, it occurs to me that a nice extension to the language would be
| > to allow more than two procedures in call-with-values... pipeline...
|
| In Dylan you need to do this as multiple statements:
|
| let (a, b, c) = foo();
| let (d, e) = bar(a, b, c);
| let (f, g, h) = baz(d, e);
+---------------
In MzScheme (or anything with "let*-values"), you can do:
(let*-values (((a b c) (foo))
((d e) (bar a b c))
((f g h) (baz d e)))
...use f,g,h... )
-Rob
-----
Rob Warnock, 41L-955 rpw3@sgi.com
Applied Networking http://reality.sgi.com/rpw3/
Silicon Graphics, Inc. Phone: 650-933-1673
1600 Amphitheatre Pkwy. PP-ASEL-IA
Mountain View, CA 94043
Follow-Ups:
- Re: small Q
- From: jorjohns@cs.indiana.edu (Jordan Johnson)
References:
- small Q
- From: jt <gkt37@dial.pipex.com>
- Re: small Q
- From: Brian Campbell <Brian_Campbell@lotus.com>
- Re: small Q
- From: "Bruce G. Stewart" <bruce.g.stewart@worldnet.att.net>
- Re: small Q
- From: Bruce Hoult <bruce@hoult.org>