list.rot
Rotate a list
list.rot(input, shift): out1
Arguments:
Arguments
Name | Type | Default | Description |
---|---|---|---|
input | list | The input list to rotate. | |
shift | number | The offset to be applied for rotating the list. Positive values shift the index of all list elements to the right and negative values to the left. |
Returns
Name | Type | Description |
---|---|---|
out1 | list | Outputs the rotated list. |