Subject: Re: Multiple evaluation
From: rpw3@rpw3.org (Rob Warnock)
Date: Fri, 25 Jul 2008 21:46:40 -0500
Newsgroups: comp.lang.lisp
Message-ID: <8dydnZeQNo6NDRfVnZ2dnUVZ_vninZ2d@speakeasy.net>
Ari Krupnik <ari@lib.aero> wrote: +--------------- | pjb@informatimago.com (Pascal J. Bourguignon) writes: | > (map-into (make-list 5) (lambda () (random 1.0))) ; consing O(N). | | But it still iterates twice, just doesn't create extra garbage, right? +--------------- No, it iterates *once* only! Hint: Look at the (MAP-INTO A #'GENSYM) example in the CLHS. -Rob ----- Rob Warnock <rpw3@rpw3.org> 627 26th Avenue <URL:http://rpw3.org/> San Mateo, CA 94403 (650)572-2607