I'm looking for a way to define a function, g, that given some values and a function as arguments, produces a pure function like so:
g[x_,y_,f_Function] = Function[f[x,y,#]]
However, I want to make g itself a pure function, but I don't know how to do this:
g = Function[Function[#3[#1,#2,#???]]]
so that g[x,y,f] = f[x,y,#]&.
Does anyone know how to do this? Is it even possible? I'd appreciate your help.