Skip to content

KPriorityQueueFactory = <K, V>(k, keyOrder, entries?) => KPriorityQueue<K, V>

Defined in: packages/heap/src/priority-queue.ts:249

Create a KPriorityQueue of arity k. Separate from BinaryPriorityQueueFactory because the arity is a construction parameter rather than part of the kind.

K

V

number

Order<K>

Iterable<readonly [K, V]>

KPriorityQueue<K, V>

With code INVALID_ARITY when k is not an integer of at least 2.