a Set is a collection where there are no duplicated items and the order of the items does not matter. A Set is a special case of the List Data type.

Operations Edit

Sets have their own operations that other collections do not have. These are all methods of creating a new set out of two other sets.

Union - The set of items that are present in either set.

Intersection - The set of items that are present in both sets.

Complement - The set where all items in one set are removed from the other.

Python Edit

using sets in python requires the importing of the set module

Sets can be created with

mySet = Set([1,2,3,4])

Java Edit

the java Set class is java.util.Set

See Also Edit

External links Edit

  • set on math wiki

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.