dsalgo 0.3.10

A package for Datastructures and Algorithms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::least_common_multiple_with_gcd_u64::lcm;

pub fn lcm_reduce<I>(iter: I) -> u64
where
    I: Iterator<Item = u64>,
{
    iter.fold(1, |a, b| lcm(a, b))
}

#[cfg(test)]

mod tests {

    #[test]

    fn test() {}
}