reduce
reduce copied to clipboard
iter.reduce(fn) in Rust
Rust 1.51.0 introduced a [`.reduce()` method on `Iterator`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.reduce). This leads to the awkward situation where `use reduce::Reduce;` leads to a compile-time error on Rust 1.51.0, because `.reduce()` on an `Iterator`...
Hi there!! Thanks for the good work! I wanted to point out a similar method implemented in the [itertools](https://crates.io/crates/itertools) crate, namely [fold1](https://docs.rs/itertools/0.9.0/itertools/trait.Itertools.html#method.fold1). Do you think it is worthy to document...