GitHubContribute in GitHub: Edit online

array_reverse()

Reverses the order of the elements in a dynamic array.

Syntax

array_reverse(array)

Arguments

array: Input array to reverse.

Returns

An array that contains exactly the same elements as the input array, but in reverse order.

Example

print arr=dynamic(["this", "is", "an", "example"]) 
| project Result=array_reverse(arr)

Results

Result
["example","an","is","this"]