Tally
Disponibile
Counts occurrences of each distinct element.
Tally[list]
Tally[list, test]
Tally[{a, b, a, c, b, a}]
→ {{a, 3}, {b, 2}, {c, 1}}Tally[{1, 2, 1, 3}]
→ {{1, 2}, {2, 1}, {3, 1}}Tally[{x, x, x}]
→ {{x, 3}}Tally[{}]
→ {}Tally[<|a -> 1, b -> 1, c -> 2|>]
→ {{1, 2}, {2, 1}} Tutte le 6300 funzioni ·
Usa questo da un client MCP