BlitzMax Docs -> 2D - A-Z -> R -> ReverseList
ReverseList( list:TList )
Returns:
Nothing.Description:
Reverse the order of elements of a listComments
| ||
| Also note that you can call 'mylist.Reverse()' to the same effect. |
| ||
'ReverseList 'Bmax 1.34 - 05 sept 2009 SuperStrict Local list:TList=New TList ListAddLast list,"One" ListAddLast list,"Two" ListAddLast list,"Three" ListAddLast list,"Four" Print "The list contains the following items..." For Local it:String=EachIn list Print it Next ReverseList(list) 'list.reverse() '<--- OOP equivalent Print "Reversed list - now contains..." For Local it:String=EachIn list Print it Next |
BlitzMax Manual Forum
Blitz3D Equivalent Command




