Take all elements from the input iterator while the given predicate returns a truthy value.
predicate
The input iterator.
A function to call for each value.
Take all elements from the input iterator while the given
predicatereturns a truthy value.