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