core.collections.list

Source code: core/collections/list.seq

class core.collections.list.list[T]

Magic methods:

__init__(arr: array[T], len: int)
__init__(capacity: int)
__init__()
__init__(it: generator[T])
__init__(other: list[T])
__len__()
__bool__()
__getitem__(idx: int)
__setitem__(idx: int, val: T)
__delitem__(idx: int)
__eq__(other: list[T])
__ne__(other: list[T])
__getitem__(s: eslice)
__getitem__(s: slice)
__getitem__(s: lslice)
__getitem__(s: rslice)
__getitem__(s: esslice)
__getitem__(s: sslice)
__getitem__(s: lsslice)
__getitem__(s: rsslice)
__setitem__(s: eslice, other: generator[T])
__setitem__(s: slice, other: generator[T])
__setitem__(s: lslice, other: generator[T])
__setitem__(s: rslice, other: generator[T])
__delitem__(s: eslice)
__delitem__(s: slice)
__delitem__(s: lslice)
__delitem__(s: rslice)
__contains__(x: T)
__copy__()
__iter__()
__reversed__()
__add__(other: list[T])
__iadd__(other: list[T])
__mul__(n: int)
__imul__(n: int)
__str__()
__hash__()

Methods:

prefetch(idx: int)
append(x: T)
ext(itr)
insert(idx: int, x: T)
pop(idx: int = - 1)
remove(x: T)
clear()
index(x: T)
count(x: T)
reverse()