szgyg <[EMAIL PROTECTED]> writes:
> (define-macro (values->list vs)
> `(call-with-values (lambda () ,vs) list))
>
> (apply + (values->list (values 1 2 3)))
Yes, but why does this need to be a macro?
(define (values->list vs)
(call-with-values (lambda () vs) list))
> or
>
> (define-macro (make-cockeyed-function f)
> `(lambda (vs) (apply ,f (values->list vs))))
Same here, I think.
Regards,
Neil
_______________________________________________
Guile-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-user