Packages

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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++[A1 >: A](that: Chunk[A1]): NonEmptyChunk[A1]

    Appends the specified Chunk to the end of this NonEmptyChunk.

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

    Apparents a single element to the end of this NonEmptyChunk.

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def append[A1 >: A](that: Chunk[A1]): NonEmptyChunk[A1]

    A named alias for ++.

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

    Converts this NonEmptyChunk of bytes to a NonEmptyChunk of bits.

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(that: Any): Boolean

    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
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[B](f: (A) ⇒ NonEmptyChunk[B]): NonEmptyChunk[B]

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

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

    Flattens a NonEmptyChunk of NonEmptyChunk values to a single NonEmptyChunk.

  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int

    Returns the hashcode of this NonEmptyChunk.

    Returns the hashcode of this NonEmptyChunk.

    Definition Classes
    NonEmptyChunk → AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def map[B](f: (A) ⇒ B): NonEmptyChunk[B]

    Transforms the elements of this NonEmptyChunk with the specified function.

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

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

  20. def mapAccumM[R, E, S, B](s: S)(f: (S, A) ⇒ ZIO[R, E, (S, B)]): ZIO[R, E, (S, NonEmptyChunk[B])]

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

  21. def mapM[R, E, B](f: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, NonEmptyChunk[B]]

    Effectfully maps the elements of this NonEmptyChunk.

  22. def mapMPar[R, E, B](f: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, NonEmptyChunk[B]]

    Effectfully maps the elements of this NonEmptyChunk in parallel.

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

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

  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def prepend[A1 >: A](that: Chunk[A1]): NonEmptyChunk[A1]

    Prepends the specified Chunk to the beginning of this NonEmptyChunk.

  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toChunk: Chunk[A]

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

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

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

  31. def toString(): String

    Renders this NonEmptyChunk as a String.

    Renders this NonEmptyChunk as a String.

    Definition Classes
    NonEmptyChunk → AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  35. def zipAllWith[B, C](that: Chunk[B])(left: (A) ⇒ C, right: (B) ⇒ C)(both: (A, B) ⇒ C): NonEmptyChunk[C]

    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.

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

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

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

    Annotates each element of this NonEmptyChunk with its index.

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped