This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: values (Re: R5RS)


On Tue, Feb 29, 2000 at 06:07:56AM -0600, C. Ray C. wrote:
> That sort of thing would be useful, but a new data type isn't
> necessary. Perhaps you could add something like a list binding macro,
> where you bind elements in a list to variables. Like, if we called it
> "list-let", it could look like this:
[deleted]

Here is a simple implementation of the list-let I proposed:

(define-macro (list-let vars lst . body)
	`(apply (lambda ,vars ,@body) ,lst))

It'd be better to allow binding multiple lists though.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]