Function take_until

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