Scalar FunctionsDynamic / JSON Functions
array_rotate_left
Rotate a dynamic array by `count` positions to the left.
Positive
counts move elements from the front to the back; negative counts
rotate right. |count| greater than the array length wraps via modulo.
Syntax
array_rotate_left(array, count)Parameters
Prop
Type
Returns: dynamic
Examples
Example 1
print array_rotate_left(dynamic([1, 2, 3, 4, 5]), 2)| print_0 (dynamic) |
|---|
| [3,4,5,1,2] |