Skip to content

MatchQ

Tests whether an expression matches a pattern.

$ wo 'MatchQ[5, _Integer]'
True
$ wo 'MatchQ["hi", _Integer]'
False