Function iterative_methods::take_until [−][src]
pub fn take_until<I, F>(it: I, f: F) -> TakeUntil<I, F> where
I: StreamingIterator,
F: FnMut(&I::Item) -> bool,
Expand description
Creates an iterator which returns initial elements until and including the first satisfying a predicate.