reverse


Description:

public static string reverse (string? s)

Reverse the string.

Example:

    assert (Strings.reverse ("hello") == "olleh");
assert (Strings.reverse ("a") == "a");

Parameters:

s

the string to reverse.

Returns:

reversed string.