internal.types.collections.list

Source code: internal/types/collections/list.seq

extension List[T]

Magic methods:

__init__(arr: Array[T], len: int)
__init__(it: Generator[T])
__init__(capacity: int)
__init__()
__init__(other: List[T])
__init__(dummy: bool, other)
__len__()
__bool__()
__getitem__(idx: int)
__setitem__(idx: int, val: T)
__delitem__(idx: int)
__eq__(other: List[T])
__ne__(other: List[T])
__getitem__(s: Slice)
__setitem__(s: Slice, other)
__delitem__(s: Slice)
__contains__(x: T)
__copy__()
__iter__()
__reversed__()
__add__(other: List[T])
__iadd__(other: List[T])
__mul__(n: int)
__imul__(n: int)
__str__()
__hash__()

Methods:

append(x: T)
extend(itr: Generator[T])
insert(idx: int, x: T)
pop(idx: int = - 1)
remove(x: T)
clear()
index(x: T)
count(x: T)
reverse()
internal.types.collections.list.list