Skip to content

module internal.types.collections.set

Source: stdlib/internal/types/collections/set.codon


Set[K]

Fields

K: type

Magic methods

__init__(self)

__init__(self, g: Generator[K])

__sub__(self, other: Set[K])

__isub__(self, other: Set[K])

__and__(self, other: Set[K]) @commutative Binary operator is commutative @associative Binary operator is associative

__iand__(self, other: Set[K])

__or__(self, other: Set[K]) @commutative Binary operator is commutative @associative Binary operator is associative

__ior__(self, other: Set[K])

__xor__(self, other: Set[K]) @commutative Binary operator is commutative @associative Binary operator is associative

__ixor__(self, other: Set[K])

__contains__(self, key: K)

__eq__(self, other: Set[K])

__ne__(self, other: Set[K])

__le__(self, other: Set[K])

__ge__(self, other: Set[K])

__lt__(self, other: Set[K])

__gt__(self, other: Set[K])

__iter__(self)

__len__(self)

__bool__(self)

__copy__(self)

__deepcopy__(self)

__repr__(self)

Methods

resize(self, new_n_buckets: int)

add(self, key: K)

update(self, other: Generator[K])

remove(self, key: K)

pop(self)

discard(self, key: K)

difference(self, other: Set[K])

difference_update(self, other: Set[K])

intersection(self, other: Set[K])

intersection_update(self, other: Set[K])

symmetric_difference(self, other: Set[K])

symmetric_difference_update(self, other: Set[K])

union(self, other: Set[K])

isdisjoint(self, other: Set[K])

issubset(self, other: Set[K])

issuperset(self, other: Set[K])

clear(self)

copy(self)


set = Set