• Creates a new segment tree with the monoid instance for T and existing items.

    Type Parameters

    • T

    Parameters

    • monoid: Monoid<T>

      The Monoid instance for T, you want to calculate quickly.

    Returns ((items) => Readonly<SegTreeInner<T>>)

    The new segment tree.

Generated using TypeDoc