Scalar FunctionsDynamic / JSON Functions
array_slice
Return a contiguous subrange of `array` between inclusive `start` and inclusive `end` indices.
Negative indices count from the end. Out-of-
range indices clamp to the array bounds; if start > end after
normalisation the result is an empty array.
Syntax
array_slice(array, start, end)Parameters
Prop
Type
Returns: dynamic
Examples
Example 1
print array_slice(dynamic([1, 2, 3, 4, 5]), 1, 3)| print_0 (dynamic) |
|---|
| [2,3,4] |