unique

unique v -- yields the elements of the list v, without duplicates.

i1 : unique {3,2,1,3,2,4,3,2,3,-2,1,2,4}

o1 = {1, 2, 3, 4, -2}

o1 : List

The order of elements is not necessarily maintained.

See also sort.


topindexpreviousupnext