Skip to content

Commit 318ae0a

Browse files
TupleCombinations::fold
1 parent cbe87cb commit 318ae0a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/adaptors/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,13 @@ where
650650
fn count(self) -> usize {
651651
self.iter.count()
652652
}
653+
654+
fn fold<B, F>(self, init: B, f: F) -> B
655+
where
656+
F: FnMut(B, Self::Item) -> B,
657+
{
658+
self.iter.fold(init, f)
659+
}
653660
}
654661

655662
impl<I, T> FusedIterator for TupleCombinations<I, T>

0 commit comments

Comments
 (0)