Skip to content

Evaluate

Evaluate[expr] evaluates to an evaluated form of expr, even when under hold conditions.

Attributes[Evaluate] := {Protected}

Simple examples

In[1]:= Hold[Evaluate[1 + 3], 2 + 1]
Out[1]= Hold[4, 2 + 1]
In[2]:= Hold[foo[Evaluate[1 + 1]]]
Out[2]= Hold[foo[Evaluate[1 + 1]]]
In[3]:= Hold[Evaluate[1 + 3, 5 + 2], 2 + 1]
Out[3]= Hold[4, 7, 2 + 1]
In[4]:= Hold[Sequence[1 + 3, 5 + 2], 2 + 1]
Out[4]= Hold[1 + 3, 5 + 2, 2 + 1]