method str.bytes
The UTF-8 bytes in order.
Example:
fn main() io {
print("{"main.oxl".endsWith(".oxl")}")
}Вывод
true
Example:
fn main() io {
print("{"oxl.toml".startsWith("oxl")}")
}Вывод
true
Example:
fn main() io {
print("{"hello".contains("ell")} {"hello".contains("z")}")
}Вывод
true false
Example:
fn main() io {
print("{"AB".bytes()}")
}Вывод
[65, 66]
pub(api) fn bytes() -> List<u8>С версии. 1.0.0-beta
Возвращает
List<u8>
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/text.oxl:141