up previous next
remove duplicates from a list
This function returns a list obtained by removing duplicates from L.
It used to be called
Set, but this is deprecated for the
abiguity with the command named
Set-Unset
for
setting panel options.
MakeSet([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).