Skip to main content

reduce

Function reduce 

Source
pub fn reduce<S: 'static, T: Clone + 'static>(
    reducer: impl Fn(T, &S) -> T + 'static,
    seed: T,
) -> Operator<T>
Expand description

reduce: accumulate the whole source and emit one final value on source COMPLETE.