Packages

c

zio.stream.ZSink

NoRemainderOps

implicit final class NoRemainderOps[R, E, A, B] extends AnyVal

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

Instance Constructors

  1. new NoRemainderOps(sink: ZSink[R, E, Nothing, A, B])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. def ?: ZSink[R, Nothing, A, A, Option[B]]

    Returns a new sink that tries to produce the B, but if there is an error in stepping or extraction, produces None.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def chunked: ZSink[R, E, A, Chunk[A], B]

    Takes a Sink, and lifts it to be chunked in its input.

    Takes a Sink, and lifts it to be chunked in its input. This will not improve performance, but can be used to adapt non-chunked sinks wherever chunked sinks are required.

  7. def collectAll: ZSink[R, E, A, A, List[B]]

    Accumulates the output into a list.

  8. def collectAllN(i: Int): ZSink[R, E, A, A, List[B]]

    Accumulates the output into a list of maximum size i.

  9. def collectAllWhile(p: (A) ⇒ Boolean): ZSink[R, E, A, A, List[B]]

    Accumulates into a list for as long as incoming values verify predicate p.

  10. def collectAllWhileWith[S](p: (A) ⇒ Boolean)(z: S)(f: (S, B) ⇒ S): ZSink[R, E, A, A, S]

    Accumulates into a value of type S for as long as incoming values verify predicate p.

  11. def collectAllWith[S](z: S)(f: (S, B) ⇒ S): ZSink[R, E, A, A, S]

    Accumulates the output into a value of type S.

  12. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def optional: ZSink[R, Nothing, A, A, Option[B]]

    A named alias for ?.

  15. def takeWhile(pred: (A) ⇒ Boolean): ZSink[R, E, A, A, B]

    Produces a sink consuming all the elements of type A as long as they verify the predicate pred.

  16. def toString(): String
    Definition Classes
    Any
  17. def untilOutput(f: (B) ⇒ Boolean): ZSink[R, E, A, A, Option[B]]

    Creates a sink that produces values until one verifies the predicate f.

    Creates a sink that produces values until one verifies the predicate f.

    Note

    The predicate is only verified when the underlying signals completion, or when the resulting sink is extracted. Sinks that never signal completion (e.g. ZSink.collectAll) will not have the predicate applied to intermediate values.

Inherited from AnyVal

Inherited from Any

Ungrouped