BinaryHeapFactory = <
A>(order,items?) =>BinaryHeap<A>
Defined in: packages/heap/src/binary-heap.ts:145
Create a BinaryHeap from an order and an optional iterable of items, bulk-built in O(n) when the items are supplied.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”Order<A>
items?
Section titled “items?”Iterable<A>
Returns
Section titled “Returns”BinaryHeap<A>