Path: g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: comp.lang.lisp Subject: Re: PCL trash Date: Fri, 04 Mar 2011 11:11:27 +0100 Organization: Informatimago Lines: 27 Message-ID: <87hbbjure8.fsf@kuiper.lan.informatimago.com> References: <4d709777$0$1073$afc38c87@read01.usenet4all.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net J1ed9W07ZF+A/2FiGFnpSw+BRP/xCkrLN2z+1mrQmWPeV8ZPbD Cancel-Lock: sha1:NDQxYzdkZGU1MzA5Nzc4YTUxZGViMTRjZGU4OTAyMTk2ZTVjNTk0OQ== sha1:qTRlwREKFipf5wRJdcq8t5EA7AI= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Edmunds Cers writes: > "WJ" writes: > >> While dumpster-diving, I found a discarded copy of PCL.* > > I'm sad to hear you have descended so low. I'm more worried about how a copy of PCL landed in a dump. >> The book devotes a whole chapter to the COBOLer's delight: >> LOOP. Those who aren't comfortable with higher-order functions >> are completely dependent upon it. > > Ah, yes, lispers! They have always said we knew the value of everything > and the cost of nothing. Would you be kind enough to rewrite the above > so that it would traverse the list _once_ (instead of five times) to > suite the tastes of this lowly looper? Or would you instruct me to go > rummage dumpsters for some cake, instead? The problem is to find a compiler that would be able to optimize out those five walks. -- __Pascal Bourguignon__ http://www.informatimago.com/ A bad day in () is better than a good day in {}.