使用 版本 下拉選單切換服務。 了解更多關於導航的資訊。
Apply to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
反轉動態陣列中的項目順序。
語法
array_reverse(
價值)
深入瞭解 語法慣例。
參數
| 姓名 | 類型 | 必要 | 說明 |
|---|---|---|---|
| 價值 | dynamic |
✔️ | 要反轉的陣列。 |
傳回
傳回數位,其中包含與輸入數位相反順序相同的元素。
範例
下列範例顯示反轉字組的陣列。
print arr=dynamic(["this", "is", "an", "example"])
| project Result=array_reverse(arr)
輸出
| 結果 |
|---|
| [“example”,“an”,“is”,“this”] |