Codebox Operators list.rot

list.rot

Rotate a list

list.rot(input, shift): out1

Arguments:

Arguments

NameTypeDefaultDescription
inputlist

The input list to rotate.

shiftnumber

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

NameTypeDescription
out1list

Outputs the rotated list.