ZIOWithFilterOps

final implicit class ZIOWithFilterOps[R, E, A](self: ZIO[R, E, A]) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def withFilter(predicate: A => Boolean)(implicit ev: CanFilter[E]): ZIO[R, E, A]

Enables to check conditions in the value produced by ZIO If the condition is not satisfied, it fails with NoSuchElementException this provide the syntax sugar in for-comprehension: for { (i, j) <- io1 positive <- io2 if positive > 0 } yield ()

Enables to check conditions in the value produced by ZIO If the condition is not satisfied, it fails with NoSuchElementException this provide the syntax sugar in for-comprehension: for { (i, j) <- io1 positive <- io2 if positive > 0 } yield ()