Re: Functional way to compare things inside a list
On Fri, Sep 21, 2012 at 6:28 PM, Chris Rebert <firstname.lastname@example.org> wrote:
> On Fri, Sep 21, 2012 at 1:23 AM, Chris Angelico <email@example.com> wrote:
>> On Fri, Sep 21, 2012 at 8:58 AM, <firstname.lastname@example.org> wrote:
>> 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,
Thanks, that'd be it; didn't come up in a quick search for 'curry'
(for obvious reason). So it would probably be possible to do it as a
one-liner with a honking big lambda, but if code clarity is what you
want, I'd go with the externally-defined function.
> Chris of the Northern Hemisphere
|All times are GMT. The time now is 10:50 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.