Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: apply vs destructuring-bind vs multiple-value-bind

2 views
Skip to first unread message

WJ

unread,
Sep 3, 2015, 11:19:07 PM9/3/15
to
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
Lars Brinkhoff wrote:

> Pascal Bourguignon <sp...@mouse-potato.com> writes:
> > Version D:
> > (defun f () (values 1 2 3))
> > (defun h () (apply (function g) (values-list 9f)))
>
> Version E:
> (defun f () (values 1 2 3))
> (defun h () (multiple-value-call #'g (f)))

Gauche Scheme:

(define (f) (values 1 2 3))
(define (h) (call-with-values f g))

--
As more and more power gravitates in the capital, the more vital it becomes for
the corporate America to secure its interests by corrupting that seat of power.
www.kolumbus.fi/aquilon/america-middle-class-and-the-end-of-growth.htm
0 new messages