你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

array_reverse()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Reverses the order of the elements in a dynamic array.

Syntax

array_reverse(value)

Learn more about syntax conventions.

Parameters

Name Type Required Description
value dynamic ✔️ The array to reverse.

Returns

Returns an array that contains the same elements as the input array in reverse order.

Example

This example shows an array of words reversed.

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

Output

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