|
|
|
|
|
by thaumasiotes
1358 days ago
|
|
> Actual currying would allow you to do partial application this way, making it less explicit > To get it in Python you'd need to do this: > f = lambda x: lambda y: x + y > This makes the currying explicit. In general, currying is taking an n-ary function and reducing it to a series of n unary functions. Something's gone wrong; your example of explicit currying conflicts with your definition of currying. `f` is a unary function. |
|
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.