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

  • Unevaluated[ expr ] represents the unevaluated form of expr when it appears as the argument to a function.
  • f [Unevaluated[ expr ]] effectively works by temporarily setting attributes so that f holds its argument unevaluated, then evaluating f [ expr ].
  • Example: Length[Unevaluated[5+6]].
  • See the Mathematica book: Section 2.5.5.
  • See also: Hold, HoldFirst, ReplacePart.

    Further Examples

    The length of this unevaluated expression is 3.



    This can be seen more clearly from the internal representation of such expressions.