Re: Beginner question on destructuring bind

Liste des GroupesRevenir à cl lisp 
Sujet : Re: Beginner question on destructuring bind
De : Nobody447095 (at) *nospam* here-nor-there.org (B. Pym)
Groupes : comp.lang.lisp
Date : 07. Aug 2024, 10:01:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8v9l2$2fcev$1@dont-email.me>
User-Agent : XanaNews/1.18.1.6
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)

Date Sujet#  Auteur
7 Aug 24 * Re: Beginner question on destructuring bind2B. Pym
7 Aug 24 `- Re: Beginner question on destructuring bind1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal