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 用戶端使用這個