Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #425: stop bit received


comp / comp.lang.lisp / Re: Lis(t|p) comprehensions

SubjectAuthor
o Re: Lis(t|p) comprehensionsB. Pym

1
Subject: Re: Lis(t|p) comprehensions
From: B. Pym
Newsgroups: comp.lang.lisp, comp.lang.scheme
Followup: rec.puzzles
Organization: A noiseless patient Spider
Date: Sun, 8 Sep 2024 21:50 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Nobody447095@here-nor-there.org (B. Pym)
Newsgroups: comp.lang.lisp,comp.lang.scheme
Subject: Re: Lis(t|p) comprehensions
Followup-To: rec.puzzles
Date: Sun, 8 Sep 2024 21:50:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <vbl676$22lig$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Date: Sun, 08 Sep 2024 23:50:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="fd4b96b422a6a6bc28d8a6b3e0db416b";
logging-data="2184784"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZCDpRZzGoNx2jtC6s1RPa"
User-Agent: XanaNews/1.18.1.6
Cancel-Lock: sha1:yLnPtzfHgtfHUWxXk0mDokFO+9g=
View all headers

> > CL-USER> [x (x <- '(1 2 3)) (oddp x)]
> > (1 3)
> >
> CL-USER> (loop for x in (list 1 2 3) when (oddp x) collect x)
> (1 3)
>
> LOOP does some kind of list comprehension aswell, without an additional
> software.

Scheme:

(filter odd? '(3 4 5))
===>
(3 5)

Does using CL cripple the brain, or does having a crippled brain
cause one to use CL?

If Lisp is to live, CL must die.

1

rocksolid light 0.9.8
clearnet tor