WLJS LogoWLJS Notebook

HoldRest

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

Examples

Set the HoldRest attribute on a function:

SetAttributes[f, HoldRest]
f[1 + 1, 2 + 2]
(* f[2, 2 + 2] *)

Please visit the official Wolfram Language Reference for more details.

On this page