Functional way to compare things inside a list

Chris Rebert clp2 at rebertia.com
Fri Sep 21 04:28:41 EDT 2012


On Fri, Sep 21, 2012 at 1:23 AM, Chris Angelico <rosuav at gmail.com> wrote:
> On Fri, Sep 21, 2012 at 8:58 AM,  <thorsopia at lavabit.com> wrote:
<snip>
> That gets the result, but probably not in the cleanest way. I'm not
> sure off-hand if Python has a convenient way to curry a function,

http://docs.python.org/library/functools.html#functools.partial

Cheers,
Chris of the Northern Hemisphere



More information about the Python-list mailing list