Mathematica > Core Language > Expressions > Parts of Expressions > MapAll (//@) >

MapAll

MapAll
or applies f to every subexpression in expr.
Apply to every subpart of an expression:
Alternative input form:
Apply 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]=
MapAll can be used on expressions with any head:
The function can be mapped onto the heads as well:
MapAll can be used on sparse arrays:
Apply to heads as well as ordinary parts of expressions:
Show nesting structure of an expression:
Leaves are visited before roots:
MapAll is equivalent to a specific level specification in Map:
MapAll maps also around the whole expression; Map does not:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF