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:

Alternative input form:

Apply h to every subpart in associations:

Generalizations & Extensions  (3)

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:

Options  (1)

Heads  (1)

Apply f to heads as well as ordinary parts of expressions:

Applications  (1)

Show nesting structure of an expression:

Properties & Relations  (3)

Leaves are visited before roots:

MapAll is equivalent to a specific level specification in Map:

MapAll maps also around the whole expression; Map[f,expr,] does not:

Wolfram Research (1988), MapAll, Wolfram Language function, https://reference.wolfram.com/language/ref/MapAll.html.

Text

Wolfram Research (1988), MapAll, Wolfram Language function, https://reference.wolfram.com/language/ref/MapAll.html.

BibTeX

@misc{reference.wolfram_2020_mapall, author="Wolfram Research", title="{MapAll}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/MapAll.html}", note=[Accessed: 22-April-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_mapall, organization={Wolfram Research}, title={MapAll}, year={1988}, url={https://reference.wolfram.com/language/ref/MapAll.html}, note=[Accessed: 22-April-2021 ]}

CMS

Wolfram Language. 1988. "MapAll." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MapAll.html.

APA

Wolfram Language. (1988). MapAll. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MapAll.html