Packages

c

zio.prelude.fx.ZPure

ZPureWithFilterOps

implicit final class ZPureWithFilterOps[W, S1, S2, R, E, A] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZPureWithFilterOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ZPureWithFilterOps(self: ZPure[W, S1, S2, R, E, A])

Value Members

  1. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  2. def withFilter(predicate: (A) => Boolean)(implicit ev: CanFilter[E]): ZPure[W, S1, S2, R, E, A]

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