OxL Reference

method Map.isEmpty

Whether the map has no entries.

Example:

oxl✓ checked in CI
fn main() io {
  let m: Map<str, i32> = {:}
  print("{m.isEmpty()}")
}
Output
true

True when the map has no entries.

Example:

oxl✓ checked in CI
fn main() io {
  let m: Map<str, i32> = {:}
  print("{m.isEmpty()}")
}
Output
true
pub(api) fn isEmpty() -> bool

Complexity. 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

See also