This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Functional Programming /


FilledSmallSquare Operate[p, f[x, y]] gives p[f][x, y].

FilledSmallSquare Operate[p, expr, n] applies p at level n in the head of expr.

FilledSmallSquare Examples: Operate[p, f[x,y]] LongRightArrow; Operate[p, f[x][y][z], 1] LongRightArrow; Operate[p, f[x][y][z], 2] LongRightArrow.

FilledSmallSquare Operate[p, f[x]] effectively applies the functional operator p to the function f.

FilledSmallSquare 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.

FilledSmallSquare See Section 2.2.9.

FilledSmallSquare See also: Through, Apply, Heads.

FilledSmallSquare New in Version 1.

Further Examples