Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "B. Pym" Newsgroups: comp.lang.lisp Subject: Re: Beginner question on destructuring bind Date: Wed, 7 Aug 2024 08:01:39 -0000 (UTC) Organization: A noiseless patient Spider Lines: 48 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Injection-Date: Wed, 07 Aug 2024 10:01:40 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3618421e7cf17a9fd6ff329509e3098e"; logging-data="2601439"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18n4zleMgaRMSqf7G0LngoN" User-Agent: XanaNews/1.18.1.6 Cancel-Lock: sha1:pBzZ7isA38lQUBHE/9BUhosTK10= Bytes: 1910 His Kennyness wrote: > you got the wrong language That ought to be: "you have got the wrong language". Worshippers of CL (COBOL-Like) and LOOP have very poor language skills. > you should learn loop Worshippers of CL (COBOL-Like) have no affinity for Lispy programming, so they are irresistibly drawn to the feculence of LOOP as a fly is drawn to a turd. Here's an example: Kenny Tilton wrote: > btw, I believe the thing that got me to look at loop was that it > provides efficiency for free, which is rare in cheats: > > (loop for x in them > when (yada x) > collect x) > > vs: > > (let (out) > (dolist (x them (nreverse out)) > (when (yada x) (push x out) > > If I had learned Lisp from PCL I would have grown up with loop as a > native sub-language and not gone seven years without it. newLISP: (filter yada them) Example: (filter odd? (sequence 0 22)) (1 3 5 7 9 11 13 15 17 19 21) (clean odd? (sequence 0 22)) (0 2 4 6 8 10 12 14 16 18 20 22)