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 index 0 is now at index 1 and the value that was at the end of the list is now at index 0.
  • Other names for this node include: ShiftList.

Example(s)