Say I have a lambda function foo
:
foo = lambda x,y,z: return x + y + z
and a dictionary:
args = {"y":2, "z":3}
How do I create a partial with foo
and args
e.g.
my_partial = partial(foo, args)
such that I can call it with the one remaining argument?
my_partial(1) == 6