reverse
Reverses the characters of a string.
reverse(x:string) -> string
Description
Section titled “Description”The reverse
function returns a new string with the characters of x
in reverse order.
This function operates on Unicode codepoints, not grapheme clusters. Hence, it will not correctly reverse grapheme clusters composed of multiple codepoints.
Examples
Section titled “Examples”Reverse a string
Section titled “Reverse a string”from {x: reverse("hello")}
{x: "olleh"}