Qurak

Count

متاحة

Counts the number of occurrences of a pattern in a list.

Count[list, pattern]
Count[expr, pattern, levelspec]
Count[pattern]
Count[{a, b, a, c, a}, a] → 3Count[{1, 2, 3, 2, 1}, 2] → 2Count[{1, 2, 3}, 4] → 0Count[{x, x, x, y}, x] → 3

مستخدمة في

المواضيع

ذات صلة

كل الدوال الـ6300 · استخدم هذا من عميل MCP