fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Idiom # 41: Reverse a string

See programming-idioms.org:

Code

Reverse the string's codepoints and join them back into a string.

Runnable Example

Since this example reverse the codepoints and not bytes or utf16 chars, this also works for unicode chars outside the basic plane:

last changed: 2026-11-23