SizeTList
Canonical path: NemAll_Python_Utility.SizeTList
__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