HoldComplete

HoldComplete[expr]

shields expr completely from the standard Wolfram Language evaluation process, preventing even upvalues associated with expr from being used.

Details

Examples

open allclose all

Basic Examples  (1)

Properties & Relations  (6)

HoldComplete is the standard container with attribute HoldAllComplete:

No form of evaluation control affects an expression with attribute HoldAllComplete:

Substitution still happens inside HoldComplete:

ReleaseHold removes one level of HoldComplete:

Hold is a milder form of HoldComplete that allows for some form of evaluation:

HoldComplete can be used to freeze the result of ToExpression before it is evaluated:

Possible Issues  (2)

HoldComplete affects only evaluation; input transformations are still applied:

HoldComplete does not prevent formatting:

Add DisableFormatting to prevent formatting:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_holdcomplete, author="Wolfram Research", title="{HoldComplete}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/HoldComplete.html}", note=[Accessed: 06-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_holdcomplete, organization={Wolfram Research}, title={HoldComplete}, year={1996}, url={https://reference.wolfram.com/language/ref/HoldComplete.html}, note=[Accessed: 06-December-2024 ]}