A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-October/057817.html below:

[Python-Dev] a different kind of reduce...

[Python-Dev] a different kind of reduce... [Python-Dev] a different kind of reduce...Aahz aahz at pythoncraft.com
Mon Oct 31 20:40:31 CET 2005
On Mon, Oct 31, 2005, Martin Blais wrote:
>
> There is a way to hack something like that with reduce, but it's not
> pretty--it involves creating a temporary list and a lambda function:
> 
>   ... = reduce(lambda x, y: dirname(x), [p] + [None] * 3)
> 
> Just wondering, does anybody know how to do this nicely? Is there an
> easy form that allows me to do this?

This should go on comp.lang.python.  Thanks.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur."  --Red Adair
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4