import { concreteTMap } from "@effect/core/stm/TMap/operations/_internal/InternalTMap" /** * Tests if the map is empty or not * * @tsplus getter effect/core/stm/TMap isEmpty */ export function isEmpty(self: TMap): USTM { concreteTMap(self) return self.tSize.get.map((_) => Equals.equals(_, 0)) }