forked from solstice/solstice
443 B
443 B
string_Reverse
Get the reversed version of a string.
Arguments
- str (string): the string to reverse.
Returns
result (string): the reversed string.
Raises
AllocFail: raised if Ground failed to allocate memory for the new string.
Example
Ground
call !string_Reverse "Hello, World!" &reverse
println $reverse # "!dlroW, olleH"
Solstice
puts string_Reverse("Hello, World!") // "!dlroW, olleH"