• Sums up the elements for a range between start (inclusive) and end (exclusive). It takes only constant time (O(1)).

    Parameters

    • start: number

      The start index (inclusive).

    Returns ((end) => (<T>(range) => T))

    The group sum for the range.

      • (end): (<T>(range) => T)
      • Parameters

        • end: number

        Returns (<T>(range) => T)

          • <T>(range): T
          • Type Parameters

            • T

            Parameters

            • range: Readonly<{
                  acc: readonly T[];
                  group: Group<T>;
              }>

            Returns T

Generated using TypeDoc