reverse

Command: reverse


Description
Reverse a string or array.

Parameters
In : MyStr(string)/MyArr(array)
Out: rtSyM(string)/rrAyM(array): The reverse of MyStr/MyArr

Author
R Kupper

Bugs


Synopsis
MyStr reverse -> rtSyM
MyArr reverse -> rrAyM

Examples
(Madam I'm Adam) reverse -> (madA m'I madaM)
(Lagerregal) reverse -> (lagerregaL)
(Aide-moi o media) reverse -> (aidem o iom-ediA)
[1 2 3] reverse -> [3 2 1]

File
lib/sli/misc_helpers.sli
Remarks
There is no "forallindexed" for strings. why?
Apr 13 1999:
-Name changed from "revert" to "reverse" on Apr 13 1999.-
-Name "revert" will still be valid but will issue a warning message.-
String-Handling has been changed to a call to the C++-coded function "Revert".
The command "Reverse" can also be used for arrays.

FirstVersion