On 6/26/18 11:34 AM, Franklin? Lee wrote:
>
> It is not possible to handle `key` without figuring out if a function
> is monotonic (a Turing-complete problem in general) or anti-monotonic
> (if that is a real term), so you MUST fall back on full iteration if a
> key is provided.
>
Monotonic (in this sense) just means never changing directions, it can
be increasing and never decreasing or decreasing and never increasing so
we don't need the 'anti-' version.

-- 
Richard Damon

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to