Forums before death by AOL, social media and spammers... "We can't have nice things"
|    sci.lang    |    Natural languages, communication, etc    |    297,461 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 296,087 of 297,461    |
|    HenHanna to All    |
|    Re: How do i get multiple Min() values?    |
|    12 Jul 24 12:00:22    |
      XPost: comp.lang.python, comp.lang.lisp       From: HenHanna@devnull.tb              >       > 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!              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca