/** * Removes all elements from the queue matching the specified predicate. * * @tsplus static effect/core/stm/TPriorityQueue.Aspects removeIf * @tsplus pipeable effect/core/stm/TPriorityQueue removeIf */ export function removeIf(f: Predicate) { return (self: TPriorityQueue): STM => self.retainIf((a) => !f(a)) }