import * as tsplus_module_1 from "@tsplus/stdlib/collections/SortedMap/empty";
import * as tsplus_module_2 from "@effect/core/stm/TRef/operations/make";
import * as tsplus_module_3 from "@effect/core/stm/STM/operations/map";
import { InternalTPriorityQueue } from "@effect/core/stm/TPriorityQueue/operations/_internal/InternalTPriorityQueue";
/**
 * Constructs a new empty `TPriorityQueue` with the specified `Ordering`.
 *
 * @tsplus static ets/TPriorityQueue/Ops empty
 */

export function empty(ord) {
  return tsplus_module_3.map_(tsplus_module_2.make(() => tsplus_module_1.empty(ord)), map => new InternalTPriorityQueue(map));
}
//# sourceMappingURL=empty.mjs.map