RosettaCodeData/Task/Reverse-a-string/Lingo/reverse-a-string-1.lingo
2016-12-05 23:44:36 +01: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