Deutsch   English   Français   Italiano  
<vbl73r$22r8q$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: A critic of Guido's blog on Python's lambda
Date: Sun, 8 Sep 2024 22:05:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vbl73r$22r8q$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Injection-Date: Mon, 09 Sep 2024 00:05:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c044a1b3d210a55bf8462c7b9807cb5d";
	logging-data="2190618"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19fvfE126BR8M0u/RbQ0aSj"
User-Agent: XanaNews/1.18.1.6
Cancel-Lock: sha1:GmwxOqewAyoR2i6jcErbQxZYFRM=
Bytes: 1131

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