[Python-Dev] a different kind of reduce...
noamraph at gmail.com
Tue Nov 1 21:55:14 CET 2005
On 11/1/05, Reinhold Birkenfeld <reinhold-birkenfeld-nospam at wolke7.net> wrote:
> > Hmm, using the function's own namespace is an interesting idea. It
> > might also be a good place to put other functionals:
> > results = f.map(data)
> > newf = f.partial(somearg)
> And we have solved the "map, filter and reduce are going away! Let's all
> weep together" problem with one strike!
I have no problems with map and filter goint away. About reduce -
please remember that you need to add this method to any callable,
including every type (I mean the constructor). I am not sure it is a
good trade for throwing away one builting, which is a perfectly
More information about the Python-Dev