BlitzMax Docs -> 2D - Category -> Data -> SwapLists
SwapLists( list_x:TList,list_y:TList )
Returns:
Nothing.Description:
Swap the contents of 2 listsComments
| ||
| Also note that you can call 'list_x.Swap(list_y)' to the same effect. |
| ||
'ListSwap 'Bmax 1.34 - 05 sept 2009 SuperStrict Local list1:TList=New TList Local list2:TList=New TList ListAddLast list1,"One - 1" ListAddLast list1,"Two - 1" ListAddLast list1,"Three - 1" ListAddLast list2,"One - 2" ListAddLast list2,"Two - 2" ListAddLast list2,"Three - 2" SwapLists(list1,list2) For Local item:String=EachIn list1 Print item Next |
BlitzMax Manual Forum
Blitz3D Equivalent Command




