OptionStreamOps

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

Value members

Concrete methods

def unNone: Stream[F, O]

Filters any 'None'.

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.

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)