Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Idiom # 152: Turn a character into a string

See programming-idioms.org:


Fuzion does not define a specific type for a character. A string is a Sequence of codepoints that may be represented using arbitrary encodings such as utf8. A single codepoint itself, however, is also a string, so creating a string from a codepoint is the identity operation.

A codepoint can be created from a unicode number given as a u32, so u32 can be considered Fuzion's equivalent to a char type.

Running Example