Deutsch   English   Français   Italiano  
<v6lho7$1rc9n$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: HenHanna <HenHanna@devnull.tb>
Newsgroups: comp.lang.lisp,comp.lang.misc,sci.lang
Subject: (in Python) given a list of candidates [ (12, "Dat"), (5, "dat"), (4,
 "..."), ...] find the Tuple with the Min (1st) tag value
Date: Wed, 10 Jul 2024 01:45:58 -0700
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <v6lho7$1rc9n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 Jul 2024 10:45:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4d026fb34b3ef224e52af3dcb33f5523";
	logging-data="1945911"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/w+cCLBPYBFZYzVi4dM4jQUnjva8g7LX0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Plx4fmQxd2GtBojLJJ+ZQFhUCTk=
Content-Language: en-US
Bytes: 1327


(in Python)  let's say i have a list of candidates
like this
            a= [ (12, "Data1"),  (5, "data"),  (4, "..."), ...]

and i want to find the Tuple with the Min (1st) tag value.

in Python that's what   min()   gives, by default.

                  min(a)


Is this the same in Scheme(Gauche) ?