Operator Type:
Operator Scope of Action:
Operator Purpose:
Operator First Added:
Operator Last Altered:
Function [other Function type actions]
Item [operators of similar scope]
Data manipulation [other Data manipulation operators]
Baseline
As at baseline
Syntax note: Operators without any defined mandatory arguments may omit their empty closing parentheses
List/Set.reverse()
List/Set.reverse
This function reverses the order of the referenced list, or set. The function does not reverse the individual list values, but rather reverses the exact order of the individual values. Trailing parentheses are optional for this function.
$MyList = $MyList.reverse();
$MyList = [ant;bee;cow].reverse();
The function may be chained with the List.sort() and List.isort() functions, noting that sorting can only be used with List-type and not Set-type data:
$MyList = $MyList.sort().reverse();
$MyList = $MyList.isort().reverse();