Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #29607

Re: Functional way to compare things inside a list

References <63673.77.105.185.196.1348181901.squirrel@lavabit.com> <CAPTjJmodd4iKgVuEbvDzQ2Yajub6k-ZQt4LV+zbMYRNaE70-9g@mail.gmail.com>
Date 2012-09-21 01:28 -0700
Subject Re: Functional way to compare things inside a list
From Chris Rebert <clp2@rebertia.com>
Newsgroups comp.lang.python
Message-ID <mailman.993.1348216124.27098.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, Sep 21, 2012 at 1:23 AM, Chris Angelico <rosuav@gmail.com> wrote:
> On Fri, Sep 21, 2012 at 8:58 AM,  <thorsopia@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Functional way to compare things inside a list Chris Rebert <clp2@rebertia.com> - 2012-09-21 01:28 -0700

csiph-web