MatchQ
Usage
Notes
Further Examples
A pattern that doesn't match and some that do.
In[1]:=
|
Out[1]=
|
This gives False because evaluates to before the match is tested.
In[2]:=
|
Out[2]=
|
Wrapping in Unevaluated gives True.
In[3]:=
|
Out[3]=
|
See also the Further Examples for Cases.
|