SizeTList
Canonical path: NemAll_Python_Utility.SizeTList
Methods:
-
__contains__
–Check for a value in the list
-
__delitem__
–Delete a list item
-
__eq__
–Compare two list
-
__getitem__
–Get a list item
-
__init__
–Initialize
-
__iter__
–List iterator
-
__len__
–Get the list length
-
__repr__
–Convert the list to a string
-
__setitem__
–Set a list item
-
append
–Append a list item
-
count
–Get the values in the list
-
extend
–Add the items from an iterable to the end of the list
-
index
–Get the index for the value
-
insert
–Insert an item in the list
-
pop
–Overloaded function. See individual overloads.
-
remove
–Remove a value from the list
-
reverse
–Reverse the list
-
sort
–Overloaded function. See individual overloads.
__contains__
Check for a value in the list
Parameters:
-
value
(int
) –Value to check
Returns:
-
bool
–State for value is in the list
__eq__
__eq__(compare_list: SizeTList) -> bool
Compare two list
Parameters:
-
compare_list
(SizeTList
) –List to compare
Returns:
-
bool
–Lists are equal state
__getitem__
Get a list item
Parameters:
-
index
(int
) –Index of the item
Returns:
-
int
–Value for the index
__setitem__
Set a list item
Parameters:
-
index
(int | slice
) –Index of the item
-
value
(int
) –Value to item
count
Get the values in the list
Parameters:
-
value
(int
) –Value to count
Returns: Value count
extend
extend(iterable: SizeTList)
Add the items from an iterable to the end of the list
Parameters:
-
iterable
(SizeTList
) –Iterable to add
index
Get the index for the value
Parameters:
-
value
(int
) –Value to find
Returns:
-
int
–Index for the value
insert
Insert an item in the list
Parameters:
-
index
(int
) –Index of the item
-
item
(int
) –Value to insert
pop
overloaded
Pop the last value from the list
Returns:
-
int
–Last value from the list
Pop an item from the list
Parameters:
-
index
(int
) –Index of the item
Returns:
-
int
–Value of the item