Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Beispiel2
Linear Regression Lua
Conta valores acima da média - LUA
Newton-Raphson method for the square root
Uppercase
Root
ok
xml panel repeater
Eliminatoria minigame
hij
Please log in to post a comment.