RosettaCodeData/Task/Reverse-a-string/LiveCode/reverse-a-string.livecode

7 lines
138 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
function reverseString S
repeat with i = length(S) down to 1
put char i of S after R
end repeat
return R
end reverseString