diff --git a/src/adaptors/mod.rs b/src/adaptors/mod.rs index 90cf46eed..e57867e06 100644 --- a/src/adaptors/mod.rs +++ b/src/adaptors/mod.rs @@ -634,6 +634,13 @@ where fn count(self) -> usize { self.iter.count() } + + fn fold(self, init: B, f: F) -> B + where + F: FnMut(B, Self::Item) -> B, + { + self.iter.fold(init, f) + } } impl FusedIterator for TupleCombinations