We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6c99ba + 42033ad commit ed55a5fCopy full SHA for ed55a5f
src/lib.rs
@@ -2243,6 +2243,7 @@ pub trait Itertools : Iterator {
2243
/// assert_eq!((0..10).fold1(|x, y| x + y).unwrap_or(0), 45);
2244
/// assert_eq!((0..0).fold1(|x, y| x * y), None);
2245
/// ```
2246
+ #[deprecated(since = "0.10.2", note = "Use `Iterator::reduce` instead")]
2247
fn fold1<F>(mut self, f: F) -> Option<Self::Item>
2248
where F: FnMut(Self::Item, Self::Item) -> Self::Item,
2249
Self: Sized,
0 commit comments