1
Fork 0

Fixed failing test + minor cleanup

This commit is contained in:
Andrew Xie 2023-05-07 21:08:47 -04:00
parent cf7dea5716
commit 96b577860d
8 changed files with 20 additions and 18 deletions

View file

@ -62,6 +62,11 @@ impl<T, I: Iterator<Item = T>> UnordItems<T, I> {
UnordItems(self.0.filter_map(f))
}
#[inline]
pub fn for_each<F: Fn(T) -> ()>(self, f: F) {
self.0.for_each(|x| f(x));
}
#[inline]
pub fn max(self) -> Option<T>
where