Sujet : Re: A critic of Guido's blog on Python's lambda
De : Nobody447095 (at) *nospam* here-nor-there.org (B. Pym)
Groupes : comp.lang.lispDate : 26. Jun 2025, 22:53:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <103kfgr$3mj77$1@dont-email.me>
References : 1
User-Agent : XanaNews/1.18.1.6
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