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-клієнта