PatternTest
PatternTest(pattern, test)
or
pattern ? test
constrains
pattern
to matchexpr
only if the evaluation oftest(expr)
yieldsTrue
.
Examples
>> MatchQ(3, _Integer?(#>0&))True
>> MatchQ(-3, _Integer?(#>0&))False
Implementation status
- ✅ - full supported