Mathematica > Core Language > Expressions > Evaluation Control > HoldRest >

HoldRest

HoldRest
is an attribute which specifies that all but the first argument to a function are to be maintained in an unevaluated form.
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
 
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Implement your own conditional:
Use Evaluate to force evaluation of an argument of a HoldRest function:
Suppress the evaluation of all but the first argument of a pure function:
Sequence splitting still happens for HoldRest functions:
NHoldRest protects arguments from N, but evaluates them normally otherwise:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF