Skip to main content

Rotate List

Rotate a list by a number of items

Holly Conrad Smith avatar
Written by Holly Conrad Smith
Updated over 2 weeks ago

Inputs

Name

Abbreviation

Type

Access

Description

List

L

Any

List

The list to rotate

Shift

S

Number

Item

The number of items to shift

Wrap

W

Boolean

Item

Whether to wrap the list. if false, the list will be cut

Outputs

Name

Abbreviation

Type

Access

Description

List

L

Any

List

The rotated list

How to

  1. Feed in a list

  2. Feed in how many indices to rotate by

    You can type a number in the box

    Or, feed in any numerical node

  3. Select whether to wrap the list

    Toggle the toggle, or feed in any Boolean node

    If wrapped, the items shifted from the end will be re-appended to the front of the list

    If not wrapped, the items shifted will be removed from the list

  4. The result is the rotated list

Did this answer your question?