pop_item_of_object
FunctionPrivateSource
data_selected: Any = pop_item_of_object(data: Any, index: Any)
Run val = data[index]; del data[index]; return val
supposing that data
is
abitrary and index
can be a one-value sequence.
warning
Note that index
is not a route
. If it is a sequence, it should only
contain one element.
Arguments
Requires
Argument | Type | Required | |
---|---|---|---|
data | Any | The whole data to be indexed. | |
index | Any | The index to be used for locating the part to be removed. It can be a number, or keyword, or a one-value sequence like [0] . |
Returns
Argument | Type | |
---|---|---|
data_selected | Any | The part of the data located by the given index and removed from the data . |