Operate

Operate[p,f[x,y]]

gives p[f][x,y].

Operate[p,expr,n]

applies p at level n in the head of expr.

Details

  • Operate[p,f[x]] effectively applies the functional operator p to the function f.
  • Operate is essentially a generalization of Apply, which allows you to apply an operator to the head of an expression, rather than simply to replace the head. »

Examples

open allclose all

Basic Examples  (2)

Operate on the head of the expression with p:

In[1]:=
Click for copyable input
Out[1]=

Use a pure function:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Properties & Relations  (3)

See Also

Through  Apply  Heads

Tutorials

Introduced in 1988
(1.0)