Function binsearchInsert

  • Find the index for insertion using binary search.

    Type Parameters

    • T

    • T1 = T

    Parameters

    • list: T[]

      The list to search

    • seekVal: T1

      The value to insert

    • cmpFunc: ((a, b) => number)

      The comparison func, that can compare two seekVals

        • (a, b): number
        • Parameters

          • a: T1
          • b: T

          Returns number

    Returns number

    The insert position

Generated using TypeDoc