implicit final class ZIOWithFilterOps[R, E, A] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ZIOWithFilterOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
withFilter(predicate: (A) ⇒ Boolean)(implicit ev: <:<[NoSuchElementException, 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 ()