[issue13430] Add a curry function to the functools module
Antoine Pitrou
report at bugs.python.org
Fri Nov 18 19:07:40 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
> However, here an example less confusional
>
> >>> adder = curry(lambda (x, y): (x + y))
> >>> adder3 = adder(3)
> >>> adder3(4)
> 7
> >>> adder3(5)
> 8
>
> Currying let you defining new functions on other functions.
But so does functools.partial. So the question is, what use case does it
help that functools.partial doesn't?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13430>
_______________________________________
More information about the Python-bugs-list
mailing list