use crate::chunks::Chunks;
pub trait IteratorChunksExt: Clone + Iterator {
fn chunks<F, K>(self, f: F) -> Chunks<Self, F, K>
where
F: FnMut(&Self::Item) -> K,
K: PartialEq,
{
Chunks::new(self, f)
}
}
impl<T> IteratorChunksExt for T
where
T: Clone + Iterator,
{
}