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