Mojo function
chr
chr(c: Int) -> String
Returns a string based on the given Unicode code point.
Returns the string representing a character whose code point is the integer
c
. For example, chr(97)
returns the string "a"
. This is the inverse of
the ord()
function.
Args:
- βc (
Int
): An integer that represents a code point.
Returns:
A string containing a single character based on the given code point.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
π What went wrong?