Deutsch   English   Français   Italiano  
<vbl676$22lig$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "B. Pym" <Nobody447095@here-nor-there.org>
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=
Bytes: 1271

> > 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.