array_reverse()
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"] |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for