OxL Reference

method char.toString

The character as a one-character text.

Example:

oxl✓ checked in CI
fn main() io {
  print("{'x'.toString()}!")
}
Output
x!
pub(api) fn toString() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/text.oxl:972

See also