MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

nesting pure functions

  • To: mathgroup at
  • Subject: [mg85968] nesting pure functions
  • From: Ryan Olf <ryanolf at>
  • 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 

I appreciate your help,

  • Prev by Date: Hiding/Restoring Palettes?
  • Next by Date: what corresponds to work folder in mathematica
  • Previous by thread: Hiding/Restoring Palettes?
  • Next by thread: Re: nesting pure functions