3 ms·
> I guess you were talking about `functools.partial`, which is basically the same as currying and also only works on the last arguments I was talking about `fu
by yen223 3y ago
> I guess you were talking about `functools.partial`, which is basically the same as currying and also only works on the last arguments
I was talking about `functools.partial` yes, but it can work on any arguments in order, using keyword arguments.
e.g.
def copy(source, dest):
.....
copy_to_temp = partial(copy, dest="/tmp/")
copy_from_temp = partial(copy, source="/tmp/")