Activate

Activate[expr]

replaces all instances of Inactive[f] in expr with f.

Activate[expr,patt]

replaces only instances of Inactive[f] for which f matches the pattern patt.

Details and Options

  • With the option setting Heads->False, Activate does not enter heads of expressions and activate their parts.

Examples

open allclose all

Basic Examples  (2)

Activate an Inactive expression:

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

Activate different parts of an inactive expression:

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

Scope  (7)

Options  (1)

Applications  (5)

Properties & Relations  (4)

Neat Examples  (1)

See Also

Inactive  Inactivate  Evaluate  ReleaseHold

Introduced in 2014
(10.0)