4 ms·
That fails for something like this: def test(x, y=None): return x assert curry(test)(1) == 1 # fails
by gamegoblin 12y ago
That fails for something like this:
def test(x, y=None):
return x
assert curry(test)(1) == 1 # fails
- hcarvalhoalves 12y agoI know, I left kwargs as a later exercise. You can still refactor with `partial` though since it accepts kwargs as the third argument.