Say I have a two dimensional function f(x,y) and another function G(function) that takes a function as an input. BUT, G only takes one dimensional functions as input and I\
Try this:
def h():
return lambda x: f(x,c)
No need to supply the x to h - you could pass a function to wrap eventually if it wouldn't be in the scope. In fact, h is obsolete unless you want it to work with any 2-argument function:
def h(functionToWrap, fixedSecondArgument):
return lambda x: functionToWrap(x, fixedSecondArgument)