Deutsch English Français Italiano |
<vbva6t$c0o9$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 Subject: Re: CAR/CDR vs FIRST/REST Date: Thu, 12 Sep 2024 17:59:57 -0000 (UTC) Organization: A noiseless patient Spider Lines: 17 Message-ID: <vbva6t$c0o9$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Injection-Date: Thu, 12 Sep 2024 19:59:58 +0200 (CEST) Injection-Info: dont-email.me; posting-host="6ef1a697af509b05826cc192b1c954d6"; logging-data="393993"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Am5icaR9JOljZ+5SHoYio" User-Agent: XanaNews/1.18.1.6 Cancel-Lock: sha1:jVTCv7cuOiXxV1onjUWL+MK9lF8= Bytes: 1230 Barry Margolin wrote: > > (mapcan #'(lambda (x) (and (numberp x) (list x))) list) > > > (loop for x in list > > when (numberp x) collect x) > > I agree with this example. Once I learned LOOP I never used the > above idiom again. (filter number? '(a b c 1 2 3)) ===> (1 2 3) Does using "loop" cripple the brain, or do only those with crippled brains use "loop"?