MathGroup Archive 2006

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

Search the Archive

RE: Re: Re: Programming style: postfix/prefix vs. functional


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.



  • Prev by Date: Symbolic Derivatives of Unspecified Functions
  • Next by Date: How to specify the starting parameter search point when using NonlinearRegress
  • Previous by thread: Re: Re: Programming style: postfix/prefix vs. functional
  • Next by thread: Re: Programming style: postfix/prefix vs. functional