ListSwap()
Swaps the positions of two elements within the list, returning back the new list
Usage
STRING = ListSwap(
list,
position1,
position2,
delimiter
)
Argument | Summary |
---|---|
list | list |
position1 | position1 |
position2 | position2 |
delimiter | delimiter - default comma (,) [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
ListSwap( list=?, position1=?, position2=?, delimiter=? );
Supports passing parameters as a structure using ArgumentCollection:
ListSwap( ArgumentCollection={ list : ?, position1 : ?, position2 : ?, delimiter : ? } );
See Also
ListAppend
ListChangedelims
ListCompact
ListContains
ListContainsnocase
ListDeleteat
ListFind
ListFindnocase
ListFirst
ListGetat
ListIndexexists
ListInsertat
ListItemtrim
ListLast
ListLen
ListPrepend
ListQualify
ListRemoveduplicates
ListRest
ListSetat
ListSort
ListSwap
ListToarray
ListValuecount
ListValuecountnocase