Hold
Usage Message: Hold[expr] maintains expr in an unevaluated form.
Attributes[Hold] = {HoldAll, Protected} Related Symbols: Attributes
Evaluate
HoldAll
HoldAllComplete
HoldComplete
Unevaluated
Notes: Hold is a symbol with the HoldAll
attribute. As with all symbols with this attribute, Hold[expr] holds expr unevaluated. For example:
In[1]:= Hold[2 + 2]
Out[1]= Hold[2 + 2]
Hold is similar to HoldComplete
, which has the HoldAllComplete
attribute. The HoldAllComplete
attribute, protects expressions from all evaluations. For example:
In[2]:= Hold[Evaluate[2 + 2]]
Out[2]= Hold[4]
In[3]:= HoldComplete[Evaluate[2 + 2]]
Out[3]= HoldComplete[Evaluate[2 + 2]]
Additional Online Documentation:
Mathematica 3.0
http://documents.wolfram.com/v3/RefGuide/Hold.html
Mathematica 4.0
http://documents.wolfram.com/v4/RefGuide/Hold.html
Questions or comments? Send email to support@wolfram.com.
|