Returns a partial list from a list.
slice(list:list, start:number, end:number=length(list)) -> list |
Name |
Type |
Description |
---|---|---|
list |
list |
Specifies the input list. |
start |
number |
Specifies the zero-based index of the first list item to include in the slice. |
end |
number |
Specifies the zero-based index of the first item to ignore in the slice. |
The following expression returns list(2,3):
slice(list(1,2,3,4),1,3) |