Scalar FunctionsDynamic / JSON Functions
array_shift_right
Shift the elements of a dynamic array by `count` positions to the right.
Positive counts drop elements from the back and left-pad with
fill (default null); negative counts shift left instead. Shifts
at least as large as the array fill the entire output with fill.
Syntax
array_shift_right(array, count, fill)Parameters
Prop
Type
Returns: dynamic
Examples
Example 1
print array_shift_right(dynamic([1, 2, 3, 4, 5]), 2, 0)| print_0 (dynamic) |
|---|
| [0,0,1,2,3] |