WLJS LogoWLJS Notebook

HoldAll

HoldAll is an attribute that specifies that all arguments to a function are to be maintained in an unevaluated form.

Examples

Define function with HoldAll:

SetAttributes[myFunc, HoldAll];
myFunc[1 + 1]
(* myFunc[1 + 1] *)

Check attributes:

Attributes[Function]
(* {HoldAll, Protected} *)

Please visit the official Wolfram Language Reference for more details.

On this page