Count how many different values a list takes in Mathematica

I would like to get the number of different values found in a List.

For example:

The output for the List a={1,2,3,4,5} would be 5 whereas it would be 2 for b={1,1,1,2,2}.

11
задан Smi 2 June 2013 в 13:18
поделиться