Function itertools::adaptors::positions

source ·
pub fn positions<I, F>(iter: I, f: F) -> Positions<I, F> where
    I: Iterator,
    F: FnMut(I::Item) -> bool,
Expand description

Create a new Positions iterator.