A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-November/057828.html below:

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

[Python-Dev] a different kind of reduce... [Python-Dev] a different kind of reduce...Greg Ewing greg.ewing at canterbury.ac.nz
Tue Nov 1 02:24:11 CET 2005
Martin Blais wrote:

> I'm always--literally every time-- looking for a more functional form,
> something that would be like this:
> 
>    # apply dirname() 3 times on its results, initializing with p
>    ... = repapply(dirname, 3, p)

Maybe ** should be defined for functions so that you
could do things like

   up3levels = dirname ** 3

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+
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