The element added to a set must be of the same type as the type assigned to the set when it was created. An element will not be added if it already exists in the set.
{
// Create a set of integers
Set is = new Set (Types::Integer);
int i;
;
// Add values 0 to 9 to the set
for (i = 0; i < 10; i++)
{
is.add(i);
}
print is.toString();
pause;
}