Functions

reverse

Supported By

Syntax

[the] reverse of factor

reverse ( expression )

Factor and expression yield strings.

Example

put reverse("hello") -- yields "olleh"

Description

The reverse function returns the reversal of the specified string. The last character of the given string becomes the first character of the resulting string, and vice versa.

See Also

reverseBits, reverseBytes