• Creates a new segment tree with the monoid instance for T and its length.

    Type Parameters

    • T

    Parameters

    • monoid: Monoid<T>

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

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

    The new segment tree.

Generated using TypeDoc