up previous next
Set

remove duplicates from a list

Syntax
Set(L:LIST):LIST

Description
This function returns a list obtained by removing duplicates from L.

Example
Set([2,2,2,1,2,1,1,3,3]);
[2, 1, 3]
------------------------------- 
WARNING: to test two sets for equality use the function EqSet instead of a normal equality test (because the latter yields false if the elements are in a different order).

NOTE: there is a command named Set for setting panel options. Its search key in the online help is Unset. The search key for the present function is Set.

See Also