List Reverse
The list::reverse function reverses the order of elements in a list.
Syntax
list::reverse(<list>)Parameters
list: The input list to be reversed.
Returns
- List: A new list with elements in reverse order.
Example
list::reverse([1, 2, 3, 4, 5])This function is useful for reordering data or preparing lists for specific processing scenarios.