Search a sequence for its minimum and stop as soon as the lowest possible value is found

Peter Otten __peter__ at web.de
Sat Jan 7 06:45:24 EST 2017


Paul Rubin wrote:

> Peter Otten <__peter__ at web.de> writes:
>> How would you implement stopmin()?
> 
> Use itertools.takewhile

I should have mentioned that I had already run into that -- let's call it -- 
off-by-one bug.




More information about the Python-list mailing list