method bytes.isEmpty
Whether there are no bytes.
Example:
fn main() io {
print("{b"".isEmpty()} {b"a".isEmpty()}")
}Output
true false
pub(api) fn isEmpty() -> boolComplexity. O(1).
Since. 1.0.0-beta
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:809