This is documentation for Mathematica 3, 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  /
MapAll

  • MapAll[ f , expr ] or f //@ expr applies f to every subexpression in expr.
  • Example: MapAll[f, a,b , c,d ].
  • MapAll[ f , expr ] is equivalent to Map[ f , expr , 0, Infinity ].
  • MapAll[ f , expr , Heads -> True] applies f inside the heads of the parts of expr.
  • See the Mathematica book: Section 2.2.4.
  • See also: ExpandAll, ReplaceAll.

    Further Examples

    In[1]:=

    Out[1]=

    In[2]:=

    Out[2]=