Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Expressions > Evaluation Control > Unevaluated >

Unevaluated

Unevaluated[expr]
represents the unevaluated form of expr when it appears as the argument to a function.
  • effectively works by temporarily setting attributes so that f holds its argument unevaluated, then evaluating .
Feed an unevaluated expression to Length:
Feed an unevaluated expression to Length:
In[1]:=
Click for copyable input
Out[1]=
Use HoldAll and Unevaluated to suppress evaluation of symbols wherever it would occur:
Find the length of a symbol's name even if it has a value:
Unevaluated works only where it appears; it is not propagated:
Unevaluated inside a held function remains:
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF