PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Patterns
>
Built-in
Mathematica
Symbol
Putting Constraints on Patterns
String Patterns
Tutorials »
|
Condition
Element
Except
See Also »
|
Patterns
Mathematica Syntax
More About »
PatternTest
(?)
p
?
test
is a pattern object that stands for any expression which matches
p
, and on which the application of
test
gives
True
.
MORE INFORMATION
Any result for
test
[
pval
]
other than
True
is taken to signify failure.
The operator
?
has a high precedence. Thus
_^_?t
is
_^(_?t)
not
(_^_)?t
.
In a form such as
__?
test
every element in the sequence matched by
__
must yield
True
when
test
is applied.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Find cases of any expression which satisfies the
NumberQ
test:
In[1]:=
Out[1]=
SEE ALSO
Condition
Element
Except
TUTORIALS
Putting Constraints on Patterns
String Patterns
MORE ABOUT
Patterns
Mathematica Syntax
New in 1
© 2008 Wolfram Research, Inc.