OxL Reference

method str.len

Length in bytes.

Example:

oxl✓ checked in CI
fn main() io {
  print("{"abc".len()} {"é".len()}")
}
Output
3 2
pub(api) fn len() -> usize

Since. 1.0.0-beta

Returns

usize

Effects

none declared (pure unless the body says otherwise)

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

See also