Is this a good use for lambda

Fredrik Lundh fredrik at pythonware.com
Tue Dec 21 08:33:02 CET 2004


Alan G Isaac wrote:

> Are the opponents saying that I should not be able to:
>
> def compose(list_of_functions): return reduce(lambda f, g: lambda x:
> f(g(x)), list_of_functions)
>
> In a nutshell: why?

I was about to reply, but I couldn't figure out what the piece of code does
in the allotted timeframe.

</F> 






More information about the Python-list mailing list