API Reference / Modules / internal / types / collections / set internal.types.collections.set Standard library module View source class Set class Set[K] View complete class API → Fields 1 K type Constructors 2 __init__ __init__(self: Self, Self: type) __init__ __init__(self: Self, g: Generator[K], Self: type) Methods 18 resize resize(self: Self, new_n_buckets: int, Self: type) add add(self: Self, key: K, Self: type) update update(self: Self, other: Generator[K], Self: type) remove remove(self: Self, key: K, Self: type) pop pop(self: Self, Self: type) discard discard(self: Self, key: K, Self: type) difference difference(self: Self, other: Set[K], Self: type) difference_update difference_update(self: Self, other: Set[K], Self: type) intersection intersection(self: Self, other: Set[K], Self: type) intersection_update intersection_update(self: Self, other: Set[K], Self: type) symmetric_difference symmetric_difference(self: Self, other: Set[K], Self: type) symmetric_difference_update symmetric_difference_update(self: Self, other: Set[K], Self: type) union union(self: Self, other: Set[K], Self: type) isdisjoint isdisjoint(self: Self, other: Set[K], Self: type) issubset issubset(self: Self, other: Set[K], Self: type) issuperset issuperset(self: Self, other: Set[K], Self: type) clear clear(self: Self, Self: type) copy copy(self: Self, Self: type) Special methods 21 __sub__ __sub__(self: Self, other: Set[K], Self: type) __isub__ __isub__(self: Self, other: Set[K], Self: type) __and__ @commutative @associative __and__(self: Self, other: Set[K], Self: type) __iand__ __iand__(self: Self, other: Set[K], Self: type) __or__ @commutative @associative __or__(self: Self, other: Set[K], Self: type) __ior__ __ior__(self: Self, other: Set[K], Self: type) __xor__ @commutative @associative __xor__(self: Self, other: Set[K], Self: type) __ixor__ __ixor__(self: Self, other: Set[K], Self: type) __contains__ __contains__(self: Self, key: K, Self: type) __eq__ __eq__(self: Self, other: Set[K], Self: type) __ne__ __ne__(self: Self, other: Set[K], Self: type) __le__ __le__(self: Self, other: Set[K], Self: type) __ge__ __ge__(self: Self, other: Set[K], Self: type) __lt__ __lt__(self: Self, other: Set[K], Self: type) __gt__ __gt__(self: Self, other: Set[K], Self: type) __iter__ __iter__(self: Self, Self: type) __len__ __len__(self: Self, Self: type) __bool__ __bool__(self: Self, Self: type) __copy__ __copy__(self: Self, Self: type) __deepcopy__ __deepcopy__(self: Self, Self: type) __repr__ __repr__(self: Self, Self: type)
class Set class Set[K] View complete class API → Fields 1 K type Constructors 2 __init__ __init__(self: Self, Self: type) __init__ __init__(self: Self, g: Generator[K], Self: type) Methods 18 resize resize(self: Self, new_n_buckets: int, Self: type) add add(self: Self, key: K, Self: type) update update(self: Self, other: Generator[K], Self: type) remove remove(self: Self, key: K, Self: type) pop pop(self: Self, Self: type) discard discard(self: Self, key: K, Self: type) difference difference(self: Self, other: Set[K], Self: type) difference_update difference_update(self: Self, other: Set[K], Self: type) intersection intersection(self: Self, other: Set[K], Self: type) intersection_update intersection_update(self: Self, other: Set[K], Self: type) symmetric_difference symmetric_difference(self: Self, other: Set[K], Self: type) symmetric_difference_update symmetric_difference_update(self: Self, other: Set[K], Self: type) union union(self: Self, other: Set[K], Self: type) isdisjoint isdisjoint(self: Self, other: Set[K], Self: type) issubset issubset(self: Self, other: Set[K], Self: type) issuperset issuperset(self: Self, other: Set[K], Self: type) clear clear(self: Self, Self: type) copy copy(self: Self, Self: type) Special methods 21 __sub__ __sub__(self: Self, other: Set[K], Self: type) __isub__ __isub__(self: Self, other: Set[K], Self: type) __and__ @commutative @associative __and__(self: Self, other: Set[K], Self: type) __iand__ __iand__(self: Self, other: Set[K], Self: type) __or__ @commutative @associative __or__(self: Self, other: Set[K], Self: type) __ior__ __ior__(self: Self, other: Set[K], Self: type) __xor__ @commutative @associative __xor__(self: Self, other: Set[K], Self: type) __ixor__ __ixor__(self: Self, other: Set[K], Self: type) __contains__ __contains__(self: Self, key: K, Self: type) __eq__ __eq__(self: Self, other: Set[K], Self: type) __ne__ __ne__(self: Self, other: Set[K], Self: type) __le__ __le__(self: Self, other: Set[K], Self: type) __ge__ __ge__(self: Self, other: Set[K], Self: type) __lt__ __lt__(self: Self, other: Set[K], Self: type) __gt__ __gt__(self: Self, other: Set[K], Self: type) __iter__ __iter__(self: Self, Self: type) __len__ __len__(self: Self, Self: type) __bool__ __bool__(self: Self, Self: type) __copy__ __copy__(self: Self, Self: type) __deepcopy__ __deepcopy__(self: Self, Self: type) __repr__ __repr__(self: Self, Self: type)