Deutsch   English   Français   Italiano  
<103kfgr$3mj77$1@dont-email.me>

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

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: "B. Pym" <Nobody447095@here-nor-there.org>
Newsgroups: comp.lang.lisp
Subject: Re: A critic of Guido's blog on Python's lambda
Date: Thu, 26 Jun 2025 21:53:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <103kfgr$3mj77$1@dont-email.me>
References: <103kf6q$3mgtm$1@dont-email.me>
Injection-Date: Thu, 26 Jun 2025 23:53:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4b1bb7d566f46488e77f5ce601d47784";
	logging-data="3886311"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18u8vaKLSQMSTUeP0GCGYAM"
User-Agent: XanaNews/1.18.1.6
Cancel-Lock: sha1:Uia7ECjqiLmsTV7/JnOZCzNvQPU=

B. Pym wrote:

> Bill Atkins wrote:
> 
> > The cool thing about ITERATE is that it lets you express looping
> > concepts in a language designed explicitly for such a purpose, e.g.
> > 
> >   (iter (for x in '(1 3 3))
> >         (summing x))  => 7
> 
> Scheme
> 
> (fold + 0 '(1 3 5 7 9))
>   ===>
> 25



>   (iter (for x in '(1 -3 2))
>         (finding x maximizing (abs x))) => -3

Gauche Scheme

(use gauche.collection :only (find-max))
(find-max '(1 -3 2) :key abs)
 ===>
-3