This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

List/Set.reverse


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Data manipulation   [other Data manipulation operators]

 5.8.0

 


List.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() 


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : List/Set.reverse