MapAll

MapAll[f,expr]

or f//@expr applies f to every subexpression in expr.

Details and Options

Examples

open allclose all

Basic Examples  (3)

Apply f to every subpart of an expression:

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

Alternative input form:

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

Apply h to every subpart in associations:

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

Generalizations & Extensions  (3)

Options  (1)

Applications  (1)

Properties & Relations  (3)

See Also

Map  ExpandAll  ReplaceAll  MapAt

Tutorials

Introduced in 1988
(1.0)