Returns an array of the same size and type as the original array, with the elements in reverse order. Nulls are retained.Documentation Index
Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
Use this file to discover all available pages before exploring further.
Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<array> | The array to be reversed | ARRAY of any type |
Return Type
ARRAY of the same type as the input array
Example
The following example returns the reverse of the input array:[6,3,2,1]
Only the outermost array is reversed for nested arrays:
[[8,9], [7], NULL, [4,5], [1,2,3]]