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 : 09. Sep 2024, 00:05:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbl73r$22r8q$1@dont-email.me>
User-Agent : XanaNews/1.18.1.6
(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
Portable Standard Lisp:
(load useful)
(for (in x '(1 -3 2))
(maximal x (abs x)))
===>
-3