MonoidalFenwickTreeImpl<T> constructor
MonoidalFenwickTreeImpl<T> ({
- required FenwickTreeMonoid<
T> algebra, - required int size,
Implementation
MonoidalFenwickTreeImpl({
required final this.algebra,
required final int size,
}) : array = List.filled(
size + 1,
algebra.identity(),
);