WOLFRAM

is an attribute which specifies that all but the first argument to a function are to be maintained in an unevaluated form.

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Out[2]=2
Out[1]=1
Out[2]=2

Applications  (1)Sample problems that can be solved with this function

Implement your own conditional:

Out[2]=2
Out[3]=3

Properties & Relations  (4)Properties of the function, and connections to other functions

Use Evaluate to force evaluation of an argument of a HoldRest function:

Out[2]=2

Suppress the evaluation of all but the first argument of a pure function:

Out[1]=1

Sequence splitting still happens for HoldRest functions:

Out[2]=2

NHoldRest protects arguments from N, but evaluates them normally otherwise:

Out[1]=1
Out[2]=2
Out[3]=3
Wolfram Research (1988), HoldRest, Wolfram Language function, https://reference.wolfram.com/language/ref/HoldRest.html.
Wolfram Research (1988), HoldRest, Wolfram Language function, https://reference.wolfram.com/language/ref/HoldRest.html.

Text

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

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

CMS

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

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

APA

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

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

BibTeX

@misc{reference.wolfram_2025_holdrest, author="Wolfram Research", title="{HoldRest}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/HoldRest.html}", note=[Accessed: 21-June-2025 ]}

@misc{reference.wolfram_2025_holdrest, author="Wolfram Research", title="{HoldRest}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/HoldRest.html}", note=[Accessed: 21-June-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_holdrest, organization={Wolfram Research}, title={HoldRest}, year={1988}, url={https://reference.wolfram.com/language/ref/HoldRest.html}, note=[Accessed: 21-June-2025 ]}

@online{reference.wolfram_2025_holdrest, organization={Wolfram Research}, title={HoldRest}, year={1988}, url={https://reference.wolfram.com/language/ref/HoldRest.html}, note=[Accessed: 21-June-2025 ]}