itertools::adaptors

Function 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.