import { Heap } from "https://deno.land/x/easyts@0.1.3/container/mod.ts";
Methods
clear(callback?: DeleteCallback<T>): void
Empty the data in the container
clone(callback?: CloneCallback<T>): Heap<T>
Create a full copy of the container
fix(i: number)
Fix re-establishes the heap ordering after the element at index i has changed its value.
heapify()
Initialize array to heap
pop(): ReturnValue<T>
Pop removes and returns the minimum element (according opts.compare cf or <) from the heap.
popRaw(): ReturnValueRaw<T>
Pop removes and returns the minimum element (according opts.compare cf or <) from the heap.
pushList(vals: Iterable<T>, callback?: CloneCallback<T>)
inserts a copy of another container of heap.