Qurak

Count

Beschikbaar

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

Gebruikt in

Onderwerpen

Gerelateerd

Alle 6300 functies · Gebruik dit vanuit een MCP-client