Shift number list
Shifts the items of a number list.
Inputs
-
list
- The list of values to shift.
-
shift
- The value that defines the number of positions to shift the list.
Outputs
-
list
- The shifted list of values.
Note(s)
-
A shifted list is cyclic.
- For example, if a list is shifted by a shift input value of
-1
, the value at index0
is now at index1
and the value that was at the end of the list is now at index0
.
- For example, if a list is shifted by a shift input value of
-
Other names for this node include: ShiftList.