guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: progv in scheme


From: Bill Schottstaedt
Subject: Re: progv in scheme
Date: Tue, 13 Sep 2011 12:09:28 -0700

if lambda were applicable, this would work in both cases:

(define-macro (progv vars vals . body)
  `(apply (apply lambda ,vars ',body) ,vals))

> (let ((s '(one two)) (v '(1 2))) (progv s v (+ one two)))
3
> (progv '(one two) '(1 2) (+ one two))
3

(running a mystery scheme...)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]