Qurak

Count

Disponibile

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

Usata in

Argomenti

Correlate

Tutte le 6300 funzioni · Usa questo da un client MCP