Unevaluated

Unevaluated[expr]

represents the unevaluated form of expr when it appears as the argument to a function.

Details

  • f[Unevaluated[expr]] effectively works by temporarily setting attributes so that f holds its argument unevaluated, then evaluating f[expr].

Examples

open allclose all

Basic Examples  (1)

Feed an unevaluated expression to Length:

Applications  (1)

Use HoldAll and Unevaluated to suppress evaluation of symbols wherever they would occur:

Find the length of a symbol's name even if it has a value:

Properties & Relations  (3)

Unevaluated works only where it appears; it is not propagated:

Unevaluated stops Evaluate:

Unevaluated inside a held function remains:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_unevaluated, author="Wolfram Research", title="{Unevaluated}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/Unevaluated.html}", note=[Accessed: 11-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_unevaluated, organization={Wolfram Research}, title={Unevaluated}, year={1991}, url={https://reference.wolfram.com/language/ref/Unevaluated.html}, note=[Accessed: 11-October-2024 ]}