Function itertools::multipeek

source ·
pub fn multipeek<I>(iterable: I) -> MultiPeek<I::IntoIter> where
    I: IntoIterator,
Expand description

An iterator adaptor that allows the user to peek at multiple .next() values without advancing the base iterator.