Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Let me put it this way: today is going to be a learning experience.


comp / comp.lang.lisp / Re: A critic of Guido's blog on Python's lambda

SubjectAuthor
o Re: A critic of Guido's blog on Python's lambdaB. Pym

1
Subject: Re: A critic of Guido's blog on Python's lambda
From: B. Pym
Newsgroups: comp.lang.lisp
Organization: A noiseless patient Spider
Date: Sun, 8 Sep 2024 22:05 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Nobody447095@here-nor-there.org (B. Pym)
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=
View all headers

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

1

rocksolid light 0.9.8
clearnet tor