Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'nesting pure functions' topicStudent Support Forum > General > Archives > "nesting pure functions"

Next Comment >Help | Reply To Topic
Author Comment/Response
Ryan Olf
02/28/08 1:57pm

Hi,

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.

URL: ,

Subject (listing for 'nesting pure functions')
Author Date Posted
nesting pure functions Ryan Olf 02/28/08 1:57pm
Re: nesting pure functions Peter Pein 03/06/08 6:27pm
Next Comment >Help | Reply To Topic