RosettaCodeData/Task/Reverse-a-string/Lingo/reverse-a-string-1.lingo
2023-07-01 13:44:08 -04:00

7 lines
127 B
Text

on reverse (str)
res = ""
repeat with i = str.length down to 1
put str.char[i] after res
end repeat
return res
end