module internal.types.collections.list¶
Source: stdlib/internal/types/collections/list.codon
internal.types.collections.list¶Source: stdlib/internal/types/collections/list.codon
List[T] @extend Class is extended to add given methods ¶__init__(self)¶__init__(self, capacity: int)¶__init__(self, other: List[T])¶__init__(self, it: Generator[T])¶__init__(self, arr: Array[T], len: int)¶__len__(self)¶__bool__(self)¶__getitem__(self, idx: int)¶__setitem__(self, idx: int, val: T)¶__delitem__(self, idx: int)¶__eq__(self, other: List[T])¶__ne__(self, other: List[T])¶__getitem__(self, s: Slice)¶__setitem__(self, s: Slice, other: Generator[T])¶__setitem__(self, s: Slice, other: List[T])¶__delitem__(self, s: Slice)¶__contains__(self, x: T)¶__copy__(self)¶__deepcopy__(self)¶__iter__(self)¶__reversed__(self)¶__add__(self, other: List[T])¶__iadd__(self, other: List[T])¶__mul__(self, n: int)¶__rmul__(self, n: int)¶__imul__(self, n: int)¶__repr__(self)¶__hash__(self)¶__lt__(self, other: List[T])¶__gt__(self, other: List[T])¶__le__(self, other: List[T])¶__ge__(self, other: List[T])¶as_list(x) @staticmethod Method is static (does not take 'self' argument) ¶append(self, x: T)¶extend(self, itr: Generator[T])¶insert(self, idx: int, x: T)¶pop(self, idx: int = -1)¶remove(self, x: T)¶clear(self)¶index(self, x: T)¶find(self, x: T)¶count(self, x: T)¶reverse(self)¶copy(self)¶list = List¶