Qurak

PatternTest

లభ్యం

Tests whether a pattern matches using a predicate function (pattern?test).

p ? test
PatternTest[x_, IntegerQ] → (x_)?IntegerQCases[{-3, 0, 5, 7, 12, "text", 7.5}, x : Except[7]?Positive] → {5, 12, 7.5}f[x : Except[0]?NumericQ] := 1/x; f[4] → 1/4

అంశాలు

సంబంధితమైనవి

మొత్తం 6300 ఫంక్షన్లు · దీన్ని MCP క్లయింట్ నుండి వాడండి