nanos world API Reference Unofficial documentation
Function Shared Native

string.reverse

Returns a string that is the string <code>s</code> reversed.

Syntax

Lua
string.reverse(str)

Parameters

Name Type Default Description
str string The string to be reversed.

Returns

  • string