f = lambda x, y: x + y
f = lambda x: lambda y: x + y
curried_f = lambda x: lambda y: x + y
And note, it makes the partial application less explicit/verbose than the original, but the currying is very explicit because of Python's syntax.
g = curried_f(3)
g = lambda y: f(3, x)
And note, it makes the partial application less explicit/verbose than the original, but the currying is very explicit because of Python's syntax.
Is "just" a function call, while: does the same thing (functionally, at least) but the partial application is made explicit.