• Creates a new min-heap. It uses Array.prototype.sort to make data into a heap.

    Type Parameters

    • T

    Parameters

    • order: Ord<T, T>

      A total order for T.

    Returns (<S>(data) => Mut<S, MutRef<S, BinaryHeap<T>>>)

    The new min-heap.

Generated using TypeDoc