RE: Re: Re: Programming style: postfix/prefix vs. functional
- To: mathgroup at smc.vnet.net
- Subject: [mg70674] RE: [mg70670] Re: [mg70633] Re: [mg70587] Programming style: postfix/prefix vs. functional
- From: "David Park" <djmp at earthlink.net>
- Date: Mon, 23 Oct 2006 02:49:40 -0400 (EDT)
Chris, Operate applies the function to only the Head of the expression. f@g[x] f[g[x]] Operate[f, g[x]] f[g][x] Although I think it would have made more sense to define Operate with subvalues so one could write Operate[f][g[x]] or Operate[f]@g[x] David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Chris Chiasson [mailto:chris at chiasson.name] To: mathgroup at smc.vnet.net Andrzej Kozlowski, Thanks for the wildcard info! So, does @ correspond to Operate? I think Operate is a bit different than @, but I am not sure.