slice
The following is a list of properties for the function slice
:
Property | Value |
---|---|
brief | Return a consecutive slice of values from a list |
category | list |
description | This function extracts a consecutive slice of values from a list. |
functionId | slice |
functionLabel | slice |
pure | true |
parameters | [ { "dataType": "list", "description": "The list to slice.", "name": "list" }, { "dataType": "integer", "description": "This is the zero based starting index. Use negative number to index from the end of the list. If not specified, an index of 0 is assumed.", "name": "startIndex", "optional": true }, { "dataType": "integer", "description": "This is the zero based ending index. If positive, this is one more than the index of the last value to include in the list. If negative, the index is from the end of the list. If not specified, the slice is from startIndex up to and including the end of the list.", "name": "endIndex", "optional": true } ] |
returns | { "dataType": "list", "description": "A list containing the selected values. If all of the values are the same data type, the list will be a list of that data type." } |