slice-list

Selects values, based on position, in a list

Arguments

Inputs:

list: The list to be sliced.

start: One-based index at which to begin extraction. A negative index can be used, indicating an offset from the end of the list. If unspecified, defaults to 1 (first element in the list).

end: One-based index at which to end extraction. A negative index can be used, indicating an offset from the end of the list. If unspecified, defaults to -1 (the last element in the list).

limit: A positive integer specifying a limit on the number of elements to be extracted. Defaults to null (no limit).

Output:

values: A list containing the extracted elements.

Last updated