OptionStreamOps

final class OptionStreamOps[F <: ([_$143] =>> Any), O](self: Stream[F, Option[O]]) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Methods

def unNone: Stream[F, O]
Filters any 'None'.
Example
{{{
scala> Stream(Some(1), Some(2), None, Some(3), None).unNone.toList
res0: List[Int] = List(1, 2, 3)
}}}
Halts the input stream at the first None.
Example
{{{
scala> Stream(Some(1), Some(2), None, Some(3), None).unNoneTerminate.toList
res0: List[Int] = List(1, 2)
}}}