List

Standard library class
class List
class List[T]
Fields 1
T type
Constructors 5
__init__
__init__(self)
__init__
__init__(self, capacity: int)
__init__
__init__(self, it: Generator[T])
__init__
__init__(self, other: List[T])
__init__
__init__(self, p: Ptr[T], n: int)
Methods 12
append
append(self, x: T)
extend
extend(self, itr: Generator[T])
insert
insert(self, idx: int, x: T)
pop
pop(self, idx: int = -1)
remove
remove(self, x: T)
clear
clear(self)
index
index(self, x: T)
find
find(self, x: T)
count
count(self, x: T)
reverse
reverse(self)
copy
copy(self)
sort
sort(self, key = Optional[int](), reverse: bool = False, algorithm: Literal[str] = "auto")
Added by internal.sort
Special methods 30
__len__
__len__(self)
__bool__
__bool__(self)
__getitem__
__getitem__(self, idx: int)
__getitem__(self, s: Slice)
__setitem__
__setitem__(self, idx: int, val: T)
__setitem__(self, s: Slice, other: Generator[T])
__setitem__(self, s: Slice, other: List[T])
__delitem__
__delitem__(self, idx: int)
__delitem__(self, s: Slice)
__eq__
__eq__(self, other: List[T])
__ne__
__ne__(self, other: List[T])
__contains__
__contains__(self, x: T)
__copy__
__copy__(self)
__deepcopy__
__deepcopy__(self)
__iter__
__iter__(self)
__reversed__
__reversed__(self)
__add__
__add__(self, other: List[T])
__iadd__
__iadd__(self, other: List[T])
__mul__
__mul__(self, n: int)
__rmul__
__rmul__(self, n: int)
__imul__
__imul__(self, n: int)
__repr__
__repr__(self)
__hash__
__hash__(self)
__lt__
__lt__(self, other: List[T])
__gt__
__gt__(self, other: List[T])
__le__
__le__(self, other: List[T])
__ge__
__ge__(self, other: List[T])
__pickle__
__pickle__(self, jar: Jar)
Added by pickle
__unpickle__
__unpickle__(jar: Jar)
Added by pickle
__to_py__
__to_py__(self)
__from_py__
__from_py__(v: cobj)
__to_gpu__
@inline
__to_gpu__(self, cache: AllocCache)
Added by internal.gpu
__from_gpu__
@inline
__from_gpu__(self, other: List[T])
Added by internal.gpu
__from_gpu_new__
@inline
__from_gpu_new__(other: List[T])
Added by internal.gpu