---
title: "reverse · RUAL Documentation"
description: "Reverses the order of elements in the given array."
canonical: https://docs.rual.nl/block-types/array/array_reverse
language: en
---

# reverse

This block is part of the [`array`](https://docs.rual.nl/block-types/array) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Reverses the order of elements in the given array.

- Array required `array` The array to be reversed.

- 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](https://docs.rual.nl/block-types/array/array_reverse): [merge by field](https://docs.rual.nl/block-types/array/array_merge_by_field) feeds the `array` pin; the `array` out pin feeds [length](https://docs.rual.nl/block-types/array/array_length).

![Studio canvas example for the reverse block: typical wiring for reverse.](https://docs.rual.nl/canvas-examples/array_reverse.png)

### Commonly used with

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

- [merge by field](https://docs.rual.nl/block-types/array/array_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](https://docs.rual.nl/block-types/object/object_new_fields): this block feeds into it. Builds a new object filled with the given fields.

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
