HoldFirst
Usage Message: HoldFirst is an attribute which specifies that the first argument to a function is to be maintained
in an unevaluated form. Attributes[HoldFirst] = {Protected} Related Symbols: Attributes
ClearAttributes
Evaluate
HoldAll
HoldAllComplete
HoldRest
ReleaseHold
SetAttributes
Unevaluated
Notes: The HoldFirst attribute for a function causes all of the first argument to that function to be held unevaluated.
In[1]:= SetAttributes[f, HoldFirst]
In[2]:= f[2 + 2, 2 + 2, 2 + 2]
Out[2]= f[2 + 2, 4, 4]
The HoldFirst attribute is used for holding function arguments unevaluated until they are passed along to the definition of the function.
Additional Online Documentation:
Mathematica 3.0
http://documents.wolfram.com/v3/RefGuide/HoldFirst.html
Mathematica 4.0
http://documents.wolfram.com/v4/RefGuide/HoldFirst.html
Questions or comments? Send email to support@wolfram.com.
|