BinaryPriorityQueueFactory = <
K,V>(keyOrder,entries?) =>BinaryPriorityQueue<K,V>
Defined in: packages/heap/src/priority-queue.ts:236
Create a BinaryPriorityQueue from a key order and an optional iterable of entries, bulk-built in O(n) when the entries are supplied.
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”keyOrder
Section titled “keyOrder”Order<K>
entries?
Section titled “entries?”Iterable<readonly [K, V]>
Returns
Section titled “Returns”BinaryPriorityQueue<K, V>