String.reverse

From Data Realms Wiki

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