Class/Object

zio

NonEmptyChunk

Related Docs: object NonEmptyChunk | package zio

Permalink

final class NonEmptyChunk[+A] extends AnyRef

A NonEmptyChunk is a Chunk that is guaranteed to contain at least one element. As a result, operations which would not be safe when performed on Chunk, such as head or reduce, are safe when performed on NonEmptyChunk. Operations on NonEmptyChunk which could potentially return an empty chunk will return a Chunk instead.

Self Type
NonEmptyChunk[A]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NonEmptyChunk
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++[A1 >: A](that: Chunk[A1]): NonEmptyChunk[A1]

    Permalink

    Appends the specified Chunk to the end of this NonEmptyChunk.

  4. def +:[A1 >: A](a: A1): NonEmptyChunk[A1]

    Permalink

    A symbolic alias for prepended.

  5. def :+[A1 >: A](a: A1): NonEmptyChunk[A1]

    Permalink

    A symbolic alias for appended.

  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def append[A1 >: A](that: Chunk[A1]): NonEmptyChunk[A1]

    Permalink

    A named alias for ++.

  8. def appended[A1 >: A](a: A1): NonEmptyChunk[A1]

    Permalink

    Appends a single element to the end of this NonEmptyChunk.

  9. def asBits(implicit ev: <:<[A, Byte]): NonEmptyChunk[Boolean]

    Permalink

    Converts this NonEmptyChunk of bytes to a NonEmptyChunk of bits.

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(that: Any): Boolean

    Permalink

    Returns whether this NonEmptyChunk and the specified NonEmptyChunk are equal to each other.

    Returns whether this NonEmptyChunk and the specified NonEmptyChunk are equal to each other.

    Definition Classes
    NonEmptyChunk → AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def flatMap[B](f: (A) ⇒ NonEmptyChunk[B]): NonEmptyChunk[B]

    Permalink

    Maps each element of this NonEmptyChunk to a new NonEmptyChunk and then concatenates them together.

  16. def flatten[B](implicit ev: <:<[A, NonEmptyChunk[B]]): NonEmptyChunk[B]

    Permalink

    Flattens a NonEmptyChunk of NonEmptyChunk values to a single NonEmptyChunk.

  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink

    Returns the hashcode of this NonEmptyChunk.

    Returns the hashcode of this NonEmptyChunk.

    Definition Classes
    NonEmptyChunk → AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def map[B](f: (A) ⇒ B): NonEmptyChunk[B]

    Permalink

    Transforms the elements of this NonEmptyChunk with the specified function.

  21. def mapAccum[S, B](s: S)(f: (S, A) ⇒ (S, B)): (S, NonEmptyChunk[B])

    Permalink

    Maps over the elements of this NonEmptyChunk, maintaining some state along the way.

  22. def mapAccumZIO[R, E, S, B](s: S)(f: (S, A) ⇒ ZIO[R, E, (S, B)])(implicit trace: ZTraceElement): ZIO[R, E, (S, NonEmptyChunk[B])]

    Permalink

    Effectfully maps over the elements of this NonEmptyChunk, maintaining some state along the way.

  23. def mapZIO[R, E, B](f: (A) ⇒ ZIO[R, E, B])(implicit trace: ZTraceElement): ZIO[R, E, NonEmptyChunk[B]]

    Permalink

    Effectfully maps the elements of this NonEmptyChunk.

  24. def mapZIOPar[R, E, B](f: (A) ⇒ ZIO[R, E, B])(implicit trace: ZTraceElement): ZIO[R, E, NonEmptyChunk[B]]

    Permalink

    Effectfully maps the elements of this NonEmptyChunk in parallel.

  25. def materialize[A1 >: A]: NonEmptyChunk[A1]

    Permalink

    Materialize the elements of this NonEmptyChunk into a NonEmptyChunk backed by an array.

  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def prepend[A1 >: A](that: Chunk[A1]): NonEmptyChunk[A1]

    Permalink

    Prepends the specified Chunk to the beginning of this NonEmptyChunk.

  30. def prepended[A1 >: A](a: A1): NonEmptyChunk[A1]

    Permalink

    Prepends a single element to the beginning of this NonEmptyChunk.

  31. def reduceMapLeft[B](map: (A) ⇒ B)(reduce: (B, A) ⇒ B): B

    Permalink

    Reduces the elements of this NonEmptyChunk from left to right using the function map to transform the first value to the type B and then the function reduce to combine the B value with each other A value.

  32. def reduceMapRight[B](map: (A) ⇒ B)(reduce: (A, B) ⇒ B): B

    Permalink

    Reduces the elements of this NonEmptyChunk from right to left using the function map to transform the first value to the type B and then the function reduce to combine the B value with each other A value.

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toChunk: Chunk[A]

    Permalink

    Converts this NonEmptyChunk to a Chunk, discarding information about it not being empty.

  35. def toCons[A1 >: A]: ::[A1]

    Permalink

    Converts this NonEmptyChunk to the :: case of a List.

  36. def toString(): String

    Permalink

    Renders this NonEmptyChunk as a String.

    Renders this NonEmptyChunk as a String.

    Definition Classes
    NonEmptyChunk → AnyRef → Any
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def zip[B](that: NonEmptyChunk[B])(implicit zippable: Zippable[A, B]): NonEmptyChunk[Out]

    Permalink

    Zips this NonEmptyChunk with the specified NonEmptyChunk, only keeping as many elements as are in the smaller chunk.

  41. def zipAll[B](that: Chunk[B]): NonEmptyChunk[(Option[A], Option[B])]

    Permalink

    Zips this NonEmptyChunk with the specified Chunk, using None to "fill in" missing values if one chunk has fewer elements than the other.

  42. def zipAllWith[B, C](that: Chunk[B])(left: (A) ⇒ C, right: (B) ⇒ C)(both: (A, B) ⇒ C): NonEmptyChunk[C]

    Permalink

    Zips this NonEmptyChunk with the specified Chunk, using the specified functions to "fill in" missing values if one chunk has fewer elements than the other.

  43. def zipWith[B, C](that: NonEmptyChunk[B])(f: (A, B) ⇒ C): NonEmptyChunk[C]

    Permalink

    Zips this NonEmptyChunk with the specified NonEmptyChunk, only keeping as many elements as are in the smaller chunk.

  44. def zipWithIndex: NonEmptyChunk[(A, Int)]

    Permalink

    Annotates each element of this NonEmptyChunk with its index.

  45. final def zipWithIndexFrom(indexOffset: Int): NonEmptyChunk[(A, Int)]

    Permalink

    Annotates each element of this NonEmptyChunk with its index, with the specified offset.

Deprecated Value Members

  1. def mapAccumM[R, E, S, B](s: S)(f: (S, A) ⇒ ZIO[R, E, (S, B)])(implicit trace: ZTraceElement): ZIO[R, E, (S, NonEmptyChunk[B])]

    Permalink

    Effectfully maps over the elements of this NonEmptyChunk, maintaining some state along the way.

    Effectfully maps over the elements of this NonEmptyChunk, maintaining some state along the way.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use mapAccumZIO

  2. def mapM[R, E, B](f: (A) ⇒ ZIO[R, E, B])(implicit trace: ZTraceElement): ZIO[R, E, NonEmptyChunk[B]]

    Permalink

    Effectfully maps the elements of this NonEmptyChunk.

    Effectfully maps the elements of this NonEmptyChunk.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use mapZIO

  3. def mapMPar[R, E, B](f: (A) ⇒ ZIO[R, E, B])(implicit trace: ZTraceElement): ZIO[R, E, NonEmptyChunk[B]]

    Permalink

    Effectfully maps the elements of this NonEmptyChunk in parallel.

    Effectfully maps the elements of this NonEmptyChunk in parallel.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use mapZIOPar

Inherited from AnyRef

Inherited from Any

Ungrouped