Rotate Array

Callable
RotateArray

Rotates array elements by Offset positions. Positive rotates right, negative rotates left.

Type: Callable (has execution pins)
Category: Fortuna|Array & Collection
Keywords: array & collection

Inputs

NameTypeDefaultDescription
ArrayTArray<int>Array parameter
OffsetintOffset parameter

Outputs

NameTypeDescription
RotatedArrayTArray<int>Array output

Example Use Cases

Example 1

Cycle through a selection wheel.

Example 2

Rotate turn order in a multiplayer game.