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