method Map.isEmpty
Whether the map has no entries.
Example:
fn main() io {
let m: Map<str, i32> = {:}
print("{m.isEmpty()}")
}Output
true
True when the map has no entries.
Example:
fn main() io {
let m: Map<str, i32> = {:}
print("{m.isEmpty()}")
}Output
true
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/collections.oxl:658