diff --git a/src/adaptors/mod.rs b/src/adaptors/mod.rs index e57867e06..6006d5f42 100644 --- a/src/adaptors/mod.rs +++ b/src/adaptors/mod.rs @@ -675,6 +675,13 @@ impl Iterator for Tuple1Combination { fn count(self) -> usize { self.iter.count() } + + fn fold(self, init: B, f: F) -> B + where + F: FnMut(B, Self::Item) -> B, + { + self.iter.map(|x| (x,)).fold(init, f) + } } impl HasCombination for (I::Item,) {