[][src]Trait competitive_hpp::prelude::ItertoolsNum

pub trait ItertoolsNum: Iterator {
    fn cumsum<S>(self) -> Cumsum<Self, S>
    where
        S: Add<Self::Item, Output = S> + Zero
, { ... } }

Extension trait for iterators: extra adaptors and methods for numerical iterators

Provided methods

fn cumsum<S>(self) -> Cumsum<Self, S> where
    S: Add<Self::Item, Output = S> + Zero

Return an iterator that produces the sequence of cumulative sums of the base iterator. The type of the sum is S.

Loading content...

Implementors

impl<I> ItertoolsNum for I where
    I: Iterator + ?Sized
[src]

Loading content...