Mathematica 9 is now available

CompositionThrough

Operate

FilledSmallSquareOperate[p, f[x, y]] gives p[f][x, y].

FilledSmallSquareOperate[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.

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

FilledSmallSquareOperate 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 The Mathematica Book: Section 2.2.9.

FilledSmallSquare See also: Through, Apply, Heads.

Further Examples

CompositionThrough



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.