beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
ReverseArray3
Ops.Array.ReverseArray3
Namespace: Ops.Array
Reverses an array with value triplets [x, y, z, ...]

summary (oneliner)

E.g. [x1, y1, z1, ..., x9, y9, z9] —> [x9, y9, z9, ..., x1, y1, z1]
or: [1, 2, 3, 4, 5, 6] —> [4, 5, 6, 1, 2, 3]
If the input array has a bad length (not dividable by 3), e.g. [1, 2, 3, 4, 5, 6, 7] (length: 4) or [1, 2, 3, 4, 5, 6, 7, 8] (length: 5), the last values which cannot form a triple will be cut off, in both cases the reversed array would be [4, 5, 6, 1, 2, 3] (trimmed).

If the array does not consist of triplets you probably want to use the regular Ops.Array.ArrayReverse op.

doc

issues

youtube id

collections

related ops

Inputs

Array (Array)

The Array you want to reverse (containing triplets)


Outputs

Reversed Array (Array)

The reversed Array


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
ReverseArray3 example:


Credits


Changelog


Ops.Array.Array3xReverse renamed to Ops.Array.ReverseArray3
2019-06-13 - pandur

Examples using ReverseArray3

Public Patches using ReverseArray3