 |
Hold
Hold[
expr
] maintains expr in an unevaluated form.
Hold has attribute HoldAll, and performs no operation on its arguments. Example: Hold[1+1] . Hold is removed by ReleaseHold. Hold[
,
, ... ] maintains a sequence of unevaluated expressions to which a function can be applied using Apply. Even though expr itself is not evaluated, Hold[
expr
] may still evaluate if expr is of the form f
[
args
], and upvalues for f have been defined. See the Mathematica book: Section 2.5.5. See also: HoldPattern, HoldForm, HoldComplete, Unevaluated, HoldAll, Symbol.
Further Examples
If you are in the form of an expression before it is evaluated, wrap Hold around the expression.
In[1]:= 
Out[1]//FullForm= 
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | | | |
 | |
|