diff --git a/src/repeatn.rs b/src/repeatn.rs index 15035ba00..539c42615 100644 --- a/src/repeatn.rs +++ b/src/repeatn.rs @@ -68,6 +68,14 @@ where fn next_back(&mut self) -> Option { self.next() } + + #[inline] + fn rfold(self, init: B, f: F) -> B + where + F: FnMut(B, Self::Item) -> B, + { + self.fold(init, f) + } } impl ExactSizeIterator for RepeatN where A: Clone {}