Mathematica 9 is now available
 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]=



    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.