slice_filter
Return a slice of the list using the same syntax as Python's list slicing.
def slice_filter(
value: Any,
arg: string
) - > Any
Return a slice of the list using the same syntax as Python's list slicing.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Any | The sequence or list-like object to be sliced. |
| arg | string | A string representing the slice indices in Python's 'start:stop:step' format. |
Returns
| Type | Description |
|---|---|
Any | The sliced portion of the input value if the argument is valid; otherwise, returns the original value. |