The result iterator has a subset of the non-final values from the baseIterator --- those for which pred(value) was truthy. The result has the same termination as the baseIterator -- the same completion value or failure reason.
baseIterator
pred(value)
The result iterator has a subset of the non-final values from the
baseIterator
--- those for whichpred(value)
was truthy. The result has the same termination as thebaseIterator
-- the same completion value or failure reason.