nesting pure functions

*To*: mathgroup at smc.vnet.net*Subject*: [mg85968] nesting pure functions*From*: Ryan Olf <ryanolf at berkeley.edu>*Date*: Fri, 29 Feb 2008 06:18:49 -0500 (EST)

I'm trying to define a function, g, such that given some parameters and a function as arguments, it returns a pure function: g[x_,y_,f_Function] = Function[f[x,y,#]] However, I need to define g itself as a pure function. I'm not sure how to do this. It may be something like this: g = Function[Function[#3[#1,#2,#?????]]] Obviously, I want #?????? to be the argument of the of the outermost Function, and #1, #2, #3 of the innermost function. Is there a way of defining g as a pure function (of a pure function) in Mathematica? I appreciate your help, Ryan