dsalgo 0.3.10

A package for Datastructures and Algorithms.
Documentation
use crate::sqrt_decomposition_with_instance_monoid::*;

pub struct RangeSum;

impl Monoid for RangeSum {
    type T = i64;

    fn op(
        &self,
        l: Self::T,
        r: Self::T,
    ) -> Self::T {
        l + r
    }

    fn e(&self) -> Self::T {
        0
    }
}

#[cfg(test)]

mod tests {

    #[test]

    fn test() {}
}