This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Programming / Attributes  /
HoldRest

  • HoldRest is an attribute which specifies that all but the first argument to a function are to be maintained in an unevaluated form.
  • See the Mathematica book: Section 2.5.3Section 2.5.5.

    Further Examples

    This makes the function s have the attribute that all arguments but the first are held.

    In[1]:=

    In[2]:=

    Out[2]=

    In[3]:=