Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Reverse strings function - Lua
--[[ Not sure what this can be used for, but here it is! Made by Ice Scripter ]]-- local x = "Hello, world!" -- Insert string here to test it! local function reverse_string(str) local reversed = "" for i = #str, 1, -1 do reversed = reversed .. string.sub(str, i, i) end return reversed end print(reverse_string(x))
run
|
edit
|
history
|
help
2
python like round function in lua
Goalless DRAWS
dd
W.I.P
cumulative probability
10 Line challenge
Convert MySQL 'framed' table into CSV
roulette
The Pyramid in the two-dimensional array made of random stones - Lua
multiline string