Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Lua solution to codeabbey challenge 30
- function utf8.reverse(s)
- local r = ""
- for p,c in utf8.codes(s) do
- r = utf8.char(c)..r
- end
- return r
- end
- inp = "on fare supper off shelf jeopardy about cactus"
- opt = utf8.reverse(inp)
- print(opt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement