string.reverse

Reverses the order of characters in a string

Prototype

s = string.reverse (str)

Description

Returns a string that is the string str reversed.

string.reverse ("nickgammon") --> nommagkcin

Lua functions

Topics