• Computes a string displaying the contents of the heap aHeap. This function is curried, takes a printing function for the values as first parameter, and then returns a function taking the heap to display.

    Parameters

    • dispFun: ((a: any) => string) = anyToString

      a function that displays a single element

        • (a): string
        • Parameters

          • a: any

          Returns string

    Returns ((a: Heap<any>) => string)

    a function displaying a heap

      • (a): string
      • Parameters

        Returns string