Verbatim Patterns

Verbatim[expr]an expression that must be matched verbatim

Verbatim patterns.

Here the x_ in the rule matches any expression.
In[1]:=
Click for copyable input
Out[1]=
The Verbatim tells the Wolfram Language that only the exact expression x_ should be matched.
In[2]:=
Click for copyable input
Out[2]=

Related Tutorials