CoCoA:MakeSet

From ApCoCoAWiki

MakeSet

remove duplicates from a list

Description

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

It used to be called Set, but this is obsolescent for the

ambiguity with the command named <ttref>Set-Unset</ttref> for setting panel options.

Example

  MakeSet([2,2,2,1,2,1,1,3,3]);
[2, 1, 3]
-------------------------------

WARNING: to test two sets for equality use the function <ttref>EqSet</ttref> instead of a normal equality test (because the latter yields false if the elements are in a different order).


Syntax

MakeSet(L:LIST):LIST

EqSet

Intersection

IntersectionList

Insert

Remove

   <type>list</type>