This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


tallies the elements in list, listing all distinct elements together with their multiplicities.
Tally[list, test]
uses test to determine whether pairs of elements should be considered equivalent, and gives a list of the first representatives of each equivalence class, together with their multiplicities.
  • Tally[list] lists distinct elements in the order they appear in list.
New in 6