import { InternalTPriorityQueue } from "@effect/core/stm/TPriorityQueue/operations/_internal/InternalTPriorityQueue"
/**
* Constructs a new empty `TPriorityQueue` with the specified `Ordering`.
*
* @tsplus static effect/core/stm/TPriorityQueue.Ops empty
*/
export function empty(ord: Ord): STM> {
return TRef.make(SortedMap.empty>(ord)).map(
(map) => new InternalTPriorityQueue(map)
)
}