MatchQ
Whether expr matches pattern, at the top level.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
MatchQ!MatchQ(expr, pattern)True if expr matches pattern, False otherwiseTyped signatures
| Type | Package | Applies |
|---|---|---|
(any, any) -> boolean | combinatorics | always |
Details
- Built directly on compute-engine's own wildcard grammar (
BoxedExpression.match):_/_namematches one element,__/__nameone-or-more,___/___namezero-or-more — Wolfram's Blank/BlankSequence/BlankNullSequence, unnamed or named. - There is no head-restricted blank (Wolfram's
_Integer): a wildcard binds to whatever it lands on, with no type filter.Pattern/Optional(x_:default) and condition patterns (_?test) aren't implemented either.
Examples
About
| Examples | 5 |
|---|---|
| Checked against | Wolfram Language 1 agree1 differ |
| Crosswalk | Wolfram Language |