[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

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

William James

9/4/2015 3:17:00 AM

Lars Brinkhoff wrote:

> Pascal Bourguignon <spam@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