Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That fails for something like this:

    def test(x, y=None):
        return x

    assert curry(test)(1) == 1 # fails


I know, I left kwargs as a later exercise. You can still refactor with `partial` though since it accepts kwargs as the third argument.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: