method Set.isEmpty
Whether the set has no elements.
Example:
fn main() io {
let s: Set<i32> = Set.new()
print("{s.isEmpty()}")
}Output
true
True when the set has no elements.
Example:
fn main() io {
print("{Set<i32>.new().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:1006