method Set.isEmpty
Whether the set has no elements.
Example:
fn main() io {
let s: Set<i32> = Set.new()
print("{s.isEmpty()}")
}Вывод
true
True when the set has no elements.
Example:
fn main() io {
print("{Set<i32>.new().isEmpty()}")
}Вывод
true
pub(api) fn isEmpty() -> boolСложность. O(1).
С версии. 1.0.0-beta
Возвращает
bool
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/collections.oxl:1006