Consider a 1-dimension string array, 1 TO n. I need to turn the entire array upside down.
Before:
A(1) = "A"
A(2) = "B"
A(3) = "C"
...
A(26) = "Z"
After:
A(1) = "Z"
A(2) = "Y"
A(3) = "X"
...
A(26) = "A"
That is just for illustration. The real data are much bigger, and we can't assume n will be an even number. What would be an efficient way to do this in PBCC?
BTW, I already sent an ARRAY INVERT wish list item to [email protected]
Before:
A(1) = "A"
A(2) = "B"
A(3) = "C"
...
A(26) = "Z"
After:
A(1) = "Z"
A(2) = "Y"
A(3) = "X"
...
A(26) = "A"
That is just for illustration. The real data are much bigger, and we can't assume n will be an even number. What would be an efficient way to do this in PBCC?
BTW, I already sent an ARRAY INVERT wish list item to [email protected]
Comment