TemplateExpression

TemplateExpression[expr]
represents an expression held until a template is applied, and then evaluated.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Prevent evaluation until a template is applied:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Force evaluation at application even when inserting into a part that would normally not evaluate:

In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=
Introduced in 2014
(10.0)