beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

RotateArray Op

Ops.Array.RotateArray


RotateArray
Namespace: Ops.Array

Op author: andro

Shift array contents based upon rotate amount


summary (oneliner)

An array of
[0,1,2,3,4]
rotated by 2 will result in
[2,3,4,0,1]



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

Array in (Array)

Array in to modify


Rotate amount (integer /Number)

Rotates array contents - accepts negative and positive numbers


Outputs

ArrayOut (Array)

The modified array out


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

ArrayRotate example file

Open Example In Editor


Patches using RotateArray

Changelog


Ops.Array.ArrayRotate renamed to Ops.Array.RotateArray
2019-09-05 - pandur