Is this a good use for lambda

Alan G Isaac aisaac at american.edu
Mon Dec 20 23:29:09 EST 2004


I need a clarification of the argument.
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?
And may I see the proposed "better" replacement for function composition.

Thanks,
Alan Isaac





More information about the Python-list mailing list