Sujet : Re: How do i get multiple Min() values?
De : HenHanna (at) *nospam* devnull.tb (HenHanna)
Groupes : comp.lang.python comp.lang.lisp sci.langDate : 12. Jul 2024, 20:00:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v6rug7$35c6s$2@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
How do i get multiple Min() values?
e.g. for Y = (x-2)*(x-3) for x in range(-10,10)
the min Y is hit twice
print( min( ((x-2)*(x-3), (x, (x-2, x-3)))
for x in range(-10,10) ) )
is this easy in Scheme(Gauche) ?
if the Min() is going to check all of the Candidate values,
it could (at least) tell us how many times the Min value was seen!