Function frunk::monoid::combine_n [] [src]

pub fn combine_n<T>(o: &T, times: u32) -> T where
    T: Monoid + Semigroup + Clone

Return this combined with itself n times.

Examples


assert_eq!(combine_n(&Some(2), 4), Some(8));Run