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  /
HoldFirst

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

    Further Examples

    This sets the function p to have the attribute that its first argument is held.

    In[1]:=

    In[2]:=

    Out[2]=