Popular recipes by Ben Wolfson http://code.activestate.com/recipes/users/99302/2001-04-09T14:56:35-07:00ActiveState Code RecipesCurried functions (Python)
2001-04-09T14:56:35-07:00Ben Wolfsonhttp://code.activestate.com/recipes/users/99302/http://code.activestate.com/recipes/52564-curried-functions/
<p style="color: grey">
Python
recipe 52564
by <a href="/recipes/users/99302/">Ben Wolfson</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>A class to allow programmers to curry functions, so that arguments can be supplied one at a time instead of all at once.
E.g., if F = Curry(lambda a,b: a+b), then
F(1,2) == F(1)(2)</p>