This is a simple function to reverse string array in mel.
1 2 3 4 5 6 7 8 9 |
global proc string[] bc_ReverseList(string $bcInputList[]) { string $bcOutputList[]; for($bcItem in $bcInputList) { stringArrayInsertAtIndex(0, $bcOutputList, strip($bcItem)); } return $bcOutputList; } |