Deutsch English Français Italiano |
<v6qu7m$2vg8q$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: HenHanna <HenHanna@devnull.tb> Newsgroups: comp.lang.python,comp.lang.lisp Subject: How do i get multiple Min() values? Date: Fri, 12 Jul 2024 02:49:41 -0700 Organization: A noiseless patient Spider Lines: 13 Message-ID: <v6qu7m$2vg8q$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 12 Jul 2024 11:49:43 +0200 (CEST) Injection-Info: dont-email.me; posting-host="b06fdc280b8cb7a95d947834e5bad7df"; logging-data="3129626"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rKpXB7H9s1xJaIHCJzfJJKdc+c5exX0o=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:plRA8pszGCT8/J+MaXGyK/1GJeA= Content-Language: en-US Bytes: 1301 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) ?