(in Python) given a list of candidates [ (12, "Dat"), (5, "dat"), (4, "..."), ...] find the Tuple with the Min (1st) tag value

Liste des GroupesRevenir à cl misc 
Sujet : (in Python) given a list of candidates [ (12, "Dat"), (5, "dat"), (4, "..."), ...] find the Tuple with the Min (1st) tag value
De : HenHanna (at) *nospam* devnull.tb (HenHanna)
Groupes : comp.lang.lisp comp.lang.misc sci.lang
Date : 10. Jul 2024, 09:45:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6lho7$1rc9n$1@dont-email.me>
User-Agent : Mozilla Thunderbird
(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) ?

Date Sujet#  Auteur
10 Jul 24 * (in Python) given a list of candidates [ (12, "Dat"), (5, "dat"), (4, "..."), ...] find the Tuple with the Min (1st) tag value3HenHanna
10 Jul 24 `* Re: (in Python) given a list of candidates [ (12, "Dat"), (5, "dat"), (4,"..."), ...] find the Tuple with the Min (1st) tag value2B. Pym
11 Jul 24  `- Re: (in Python) given a list of candidates [ (12, "Dat"), (5, "dat"), (4,"..."), ...] find the Tuple with the Min (1st) tag value1HenHanna

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal