String.reverse

From Data Realms Wiki

Revision as of 22:11, 8 October 2011 by Doves (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

string.reverse(s)

Returns a string that is the string s reversed.

Example:

  1. print(string.reverse ("!dlroW ,olleH"))

Would result in: Hello, World!

Personal tools