Skip to content

module internal.types.collections.tuple

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


DynamicTuple[T] @tuple Class is named tuple (cannot write fields)

Fields

T: type

Magic methods

__new__(x: List[T])

__new__(x: Generator[T])

__new__()

__len__(self)

__bool__(self)

__eq__(self, other)

__eq__(self, other: DynamicTuple[T])

__ne__(self, other)

__ne__(self, other: DynamicTuple[T])

__lt__(self, other)

__gt__(self, other)

__le__(self, other)

__ge__(self, other)

__lt__(self, other: DynamicTuple[T])

__gt__(self, other: DynamicTuple[T])

__le__(self, other: DynamicTuple[T])

__ge__(self, other: DynamicTuple[T])

__hash__(self)

__iter__(self)

__contains__(self, item: T)

__getitem__(self, idx: int)

__getitem__(self, s: Slice)

__repr__(self)