What are the convenient Mathematica functions, say $Func1$ and $Func2$, that if one inputs a collection of sets of numbers:
$$\text{{{1,2},{3,2},{4,1},{1,2},{1,2},{4,1}}}$$
(1) $$\text{$Func1$[{{1,2},{3,2},{4,1},{1,2},{1,2},{4,1}}]={{1,2},{3,2},{4,1}},}$$ outputs a collection of distinct sets of numbers.
(2) $$\text{$Func2$[{{1,2},{3,2},{4,1},{1,2},{1,2},{4,1}}],}$$ outputs a collection of distinct sets of numbers {{1,2},{3,2},{4,1}}, but also counts the number of such a sets? Namely $Func2$ outputs knowing 3 sets of {1,2}, 1 set of {3,2}, 2 sets of {4,1}}. but with more information that {3,1,2} stands for the number of collection for each sets.
Counts
in v10 orTally
in earlier versions. There's alsoDeleteDuplicates
andUnion
. $\endgroup$ – Szabolcs Mar 2 '17 at 18:07