List/Set.reverse

Tinderbox Icon


Operator Type:   Function
Operator Scope of Action:   Item
Operator Purpose:   Data manipulation

List.reverse()

New to v5.8.0, 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):

Up: Data manipulation operators

A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Types : Data manipulation operators : List/Set.reverse

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox