Cheddar Documentation
Search
⌃
K
Cheddar Documentation
Search
⌃
K
Introduction
Syntax
Literals
Mathematics
Variables
Functions
Default Operators
Control Flow
Standard Library
String
Bytes
Count
Length
Match
Slice
Tail
Chars
Head
Lines
Ord
Split
Test
Chunk
Index
Lower
Reverse
Substitute
Upper
Developing
Powered By
GitBook
Chars
type
returns
Getter
array<string>
Explanation
Returns an array of the bytes in a given string, handles unicode surrogates properly.
Examples
"Hello"
==
[
"H"
,
"e"
,
"l"
,
"l"
,
"o"
]
"🐐 > 🐑"
==
[
"🐐"
,
" "
,
">"
,
" "
,
"🐑"
]
Previous
Tail
Next
Head
Last modified
3yr ago