reverse

This block is part of the array group and was last modified in core v10.4.28.

reverse v10.4.28

Reverses the order of elements in the given array.

In pins 1
  • Array required
    array

    The array to be reversed.

Out pins 1
  • Array
    array

    The reversed array.

Returns a reversed COPY of the array; the input is not mutated. Example: [1,2,3] -> [3,2,1].

invert

A typical wiring for reverse: merge by field feeds the array pin; the array out pin feeds length.

Studio canvas example for the reverse block: typical wiring for reverse.

Commonly used with

In production blueprints, this block is most often wired together with:

  • merge by field: feeds into this block. will return the base array with the matches merged in, pairing base_array_key against merge_array_key. The base array items are modified in place.
  • new object: this block feeds into it. Builds a new object filled with the given fields.

Version history

Introduced in v10.4.28.


Back to array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group