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 /

Composition

FilledSmallSquare Composition[, , , ... ] represents a composition of the functions , , , ... .

FilledSmallSquare Composition allows you to build up compositions of functions which can later be applied to specific arguments.

FilledSmallSquare Example: Composition[a, b, c][x] LongRightArrow.

FilledSmallSquare Composition objects containing Identity or InverseFunction[f] are automatically simplified when possible.

FilledSmallSquare Composition has the attributes Flat and OneIdentity.

FilledSmallSquare a @ b @ c gives a[b[c]].

FilledSmallSquare a // b // c gives c[b[a]].

FilledSmallSquare See Section 2.2.9.

FilledSmallSquare See also: Nest, Function.

FilledSmallSquare New in Version 2.

Further Examples