Reverse List | ARRAY_REVERSE

Syntax

ARRAY_REVERSE( [value] )

Parameters

value
The ARRAY to be reversed.

Return Value

A new ARRAY with the same items as VALUE but in reverse order.

Description

Creates a reversed copy of an ARRAY value. If the value is not an ARRAY, it is coerced into one using the ARRAY operation.

Examples

ARRAY_REVERSE([]) # returns []
ARRAY_REVERSE(["a", "b", "c"]) # returns ["c", "b", "a"]