Set

set

Set

(set elements ...)

elements (Any type): Sequence of any amount of elements of any type, which shall be placed in a set.

Creates a set with the given elements. The number of elements may be zero, so write "(set)" to generate the empty set.

The type of the elements can be any and it does not have to be of congruent type, unless this set is to be used in another element which places restrictions on it.

The differences between a set and a list are that a list takes into account the ordering of the elements and can have the same element more than once. A set does not consider the order and only contains each element once.

Guide index