method str.bytes
The UTF-8 bytes in order.
Example:
fn main() io {
print("{"main.oxl".endsWith(".oxl")}")
}Output
true
Example:
fn main() io {
print("{"oxl.toml".startsWith("oxl")}")
}Output
true
Example:
fn main() io {
print("{"hello".contains("ell")} {"hello".contains("z")}")
}Output
true false
Example:
fn main() io {
print("{"AB".bytes()}")
}Output
[65, 66]
pub(api) fn bytes() -> List<u8>Since. 1.0.0-beta
Returns
List<u8>
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:141