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 ەوە بەکاربهێنە