Class/Object

zio

Chunk

Related Docs: object Chunk | package zio

Permalink

sealed abstract class Chunk[+A] extends ChunkLike[A] with Serializable

A Chunk[A] represents a chunk of values of type A. Chunks are designed are usually backed by arrays, but expose a purely functional, safe interface to the underlying elements, and they become lazy on operations that would be costly with arrays, such as repeated concatenation.

The implementation of balanced concatenation is based on the one for Conc-Trees in "Conc-Trees for Functional and Parallel Programming" by Aleksandar Prokopec and Martin Odersky. http://aleksandar-prokopec.com/resources/docs/lcpc-conc-trees.pdf

NOTE: For performance reasons Chunk does not box primitive types. As a result, it is not safe to construct chunks from heterogeneous primitive types.

Self Type
Chunk[A]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Chunk
  2. Serializable
  3. Serializable
  4. ChunkLike
  5. IndexedSeq
  6. IndexedSeq
  7. IndexedSeqLike
  8. Seq
  9. Seq
  10. SeqLike
  11. GenSeq
  12. GenSeqLike
  13. PartialFunction
  14. Function1
  15. Iterable
  16. Iterable
  17. IterableLike
  18. Equals
  19. GenIterable
  20. GenIterableLike
  21. Traversable
  22. Immutable
  23. Traversable
  24. GenTraversable
  25. GenericTraversableTemplate
  26. TraversableLike
  27. GenTraversableLike
  28. Parallelizable
  29. TraversableOnce
  30. GenTraversableOnce
  31. FilterMonadic
  32. HasNewBuilder
  33. AnyRef
  34. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Elements extends AbstractIterator[A] with BufferedIterator[A] with Serializable

    Permalink
    Attributes
    protected
    Definition Classes
    IndexedSeqLike
    Annotations
    @SerialVersionUID()
  2. type Self = Chunk[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  3. class WithFilter extends FilterMonadic[A, Repr]

    Permalink
    Definition Classes
    TraversableLike

Abstract Value Members

  1. abstract def apply(idx: Int): A

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  2. abstract def chunkIterator: ChunkIterator[A]

    Permalink
  3. abstract def length: Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &(that: Chunk[Boolean])(implicit ev: <:<[A, Boolean]): BitChunkByte

    Permalink

    Returns the bitwise AND of this chunk and the specified chunk.

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

    Permalink

    Returns the concatenation of this chunk with the specified chunk.

  5. final def ++[A1 >: A](that: Chunk[A1]): Chunk[A1]

    Permalink

    Returns the concatenation of this chunk with the specified chunk.

  6. def ++[B >: A, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  7. def ++:[B >: A, That](that: Traversable[B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  8. def ++:[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  9. final def +:[A1 >: A, That](a1: A1)(implicit bf: CanBuildFrom[Chunk[A], A1, That]): That

    Permalink
    Definition Classes
    ChunkLike → SeqLike → GenSeqLike
  10. def /:[B](z: B)(op: (B, A) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. final def :+[A1 >: A, That](a1: A1)(implicit bf: CanBuildFrom[Chunk[A], A1, That]): That

    Permalink
    Definition Classes
    ChunkLike → SeqLike → GenSeqLike
  12. def :\[B](z: B)(op: (A, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  13. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def ^(that: Chunk[Boolean])(implicit ev: <:<[A, Boolean]): BitChunkByte

    Permalink

    Returns the bitwise XOR of this chunk and the specified chunk.

  15. def addString(b: StringBuilder): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  16. def addString(b: StringBuilder, sep: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  17. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  18. def aggregate[B](z: ⇒ B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  19. def andThen[C](k: (A) ⇒ C): PartialFunction[Int, C]

    Permalink
    Definition Classes
    PartialFunction → Function1
  20. def append[A1 >: A](a1: A1): Chunk[A1]

    Permalink

    Appends an element to the chunk.

    Appends an element to the chunk.

    Attributes
    protected
  21. def applyOrElse[A1 <: Int, B1 >: A](x: A1, default: (A1) ⇒ B1): B1

    Permalink
    Definition Classes
    PartialFunction
  22. final def asBitsByte(implicit ev: <:<[A, Byte]): Chunk[Boolean]

    Permalink

    Converts a chunk of bytes to a chunk of bits.

  23. final def asBitsInt(endianness: Endianness)(implicit ev: <:<[A, Int]): Chunk[Boolean]

    Permalink

    Converts a chunk of ints to a chunk of bits.

  24. final def asBitsLong(endianness: Endianness)(implicit ev: <:<[A, Long]): Chunk[Boolean]

    Permalink

    Converts a chunk of longs to a chunk of bits.

  25. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  26. final def asString(charset: Charset)(implicit ev: <:<[A, Byte]): String

    Permalink

    Crates a new String based on this chunk of bytes and using the given charset.

  27. final def asString(implicit ev: IsText[A]): String

    Permalink

    Crates a new String based on this chunks data.

  28. def boolean(index: Int)(implicit ev: <:<[A, Boolean]): Boolean

    Permalink

    Get the element at the specified index.

  29. def byte(index: Int)(implicit ev: <:<[A, Byte]): Byte

    Permalink

    Get the element at the specified index.

  30. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    IterableLike → Equals
  31. def char(index: Int)(implicit ev: <:<[A, Char]): Char

    Permalink

    Get the element at the specified index.

  32. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def collect[B, That](pf: PartialFunction[A, B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink

    Returns a filtered, mapped subset of the elements of this chunk.

    Returns a filtered, mapped subset of the elements of this chunk.

    Definition Classes
    ChunkLike → TraversableLike → GenTraversableLike
  34. def collectChunk[B](pf: PartialFunction[A, B]): Chunk[B]

    Permalink

    Returns a filtered, mapped subset of the elements of this chunk.

    Returns a filtered, mapped subset of the elements of this chunk.

    Attributes
    protected
  35. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  36. def collectWhile[B](pf: PartialFunction[A, B]): Chunk[B]

    Permalink

    Transforms all elements of the chunk for as long as the specified partial function is defined.

  37. def collectWhileZIO[R, E, B](pf: PartialFunction[A, ZIO[R, E, B]])(implicit trace: Trace): ZIO[R, E, Chunk[B]]

    Permalink
  38. def collectZIO[R, E, B](pf: PartialFunction[A, ZIO[R, E, B]])(implicit trace: Trace): ZIO[R, E, Chunk[B]]

    Permalink

    Returns a filtered, mapped subset of the elements of this chunk based on a .

  39. def combinations(n: Int): Iterator[Chunk[A]]

    Permalink
    Definition Classes
    SeqLike
  40. def companion: GenericCompanion[Chunk]

    Permalink
    Definition Classes
    ChunkLike → IndexedSeq → IndexedSeq → Seq → Seq → GenSeq → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → GenericTraversableTemplate
  41. def compose[A](g: (A) ⇒ Int): (A) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  42. def contains[A1 >: A](elem: A1): Boolean

    Permalink
    Definition Classes
    SeqLike
  43. def containsSlice[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    SeqLike
  44. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  45. def copyToArray[B >: A](xs: Array[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  46. def copyToArray[B >: A](xs: Array[B], start: Int): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  47. def copyToBuffer[B >: A](dest: Buffer[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce
  48. final def corresponds[B](that: Chunk[B])(f: (A, B) ⇒ Boolean): Boolean

    Permalink

    Determines whether this chunk and the specified chunk have the same length and every pair of corresponding elements of this chunk and the specified chunk satisfy the specified predicate.

  49. def corresponds[B](that: GenSeq[B])(p: (A, B) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  50. def count(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  51. def dedupe: Chunk[A]

    Permalink

    Deduplicates adjacent elements that are identical.

  52. def depth: Int

    Permalink
    Attributes
    protected
  53. def diff[B >: A](that: GenSeq[B]): Chunk[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  54. def distinct: Chunk[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  55. def double(index: Int)(implicit ev: <:<[A, Double]): Double

    Permalink

    Get the element at the specified index.

  56. def drop(n: Int): Chunk[A]

    Permalink

    Drops the first n elements of the chunk.

    Drops the first n elements of the chunk.

    Definition Classes
    Chunk → IterableLike → TraversableLike → GenTraversableLike
  57. def dropRight(n: Int): Chunk[A]

    Permalink

    Drops the last n elements of the chunk.

    Drops the last n elements of the chunk.

    Definition Classes
    Chunk → IterableLike
  58. def dropUntil(f: (A) ⇒ Boolean): Chunk[A]

    Permalink

    Drops all elements until the predicate returns true.

  59. def dropUntilZIO[R, E](p: (A) ⇒ ZIO[R, E, Boolean])(implicit trace: Trace): ZIO[R, E, Chunk[A]]

    Permalink

    Drops all elements until the effectful predicate returns true.

  60. def dropWhile(f: (A) ⇒ Boolean): Chunk[A]

    Permalink

    Drops all elements so long as the predicate returns true.

    Drops all elements so long as the predicate returns true.

    Definition Classes
    Chunk → TraversableLike → GenTraversableLike
  61. def dropWhileZIO[R, E](p: (A) ⇒ ZIO[R, E, Boolean])(implicit trace: Trace): ZIO[R, E, Chunk[A]]

    Permalink

    Drops all elements so long as the effectful predicate returns true.

  62. def endsWith[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  63. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    Chunk → GenSeqLike → Equals → AnyRef → Any
  65. final def exists(f: (A) ⇒ Boolean): Boolean

    Permalink

    Determines whether a predicate is satisfied for at least one element of this chunk.

    Determines whether a predicate is satisfied for at least one element of this chunk.

    Definition Classes
    Chunk → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  66. def filter(f: (A) ⇒ Boolean): Chunk[A]

    Permalink

    Returns a filtered subset of this chunk.

    Returns a filtered subset of this chunk.

    Definition Classes
    Chunk → TraversableLike → GenTraversableLike
  67. def filterNot(p: (A) ⇒ Boolean): Chunk[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  68. final def filterZIO[R, E](f: (A) ⇒ ZIO[R, E, Boolean])(implicit trace: Trace): ZIO[R, E, Chunk[A]]

    Permalink

    Filters this chunk by the specified effectful predicate, retaining all elements for which the predicate evaluates to true.

  69. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  70. final def find(f: (A) ⇒ Boolean): Option[A]

    Permalink

    Returns the first element that satisfies the predicate.

    Returns the first element that satisfies the predicate.

    Definition Classes
    Chunk → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  71. final def findZIO[R, E](f: (A) ⇒ ZIO[R, E, Boolean])(implicit trace: Trace): ZIO[R, E, Option[A]]

    Permalink

    Returns the first element that satisfies the effectful predicate.

  72. final def flatMap[B, That](f: (A) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink

    Returns the concatenation of mapping every element into a new chunk using the specified function.

    Returns the concatenation of mapping every element into a new chunk using the specified function.

    Definition Classes
    ChunkLike → TraversableLike → GenTraversableLike → FilterMonadic
  73. final def flatMapChunk[B, That](f: (A) ⇒ GenTraversableOnce[B]): Chunk[B]

    Permalink

    The implementation of flatMap for Chunk.

    The implementation of flatMap for Chunk.

    Attributes
    protected
    Definition Classes
    ChunkLike
  74. def flatten[B](implicit ev: (A) ⇒ GenTraversableOnce[B]): Chunk[B]

    Permalink

    Flattens a chunk of chunks into a single chunk by concatenating all chunks.

    Flattens a chunk of chunks into a single chunk by concatenating all chunks.

    Definition Classes
    ChunkLike → GenericTraversableTemplate
  75. def float(index: Int)(implicit ev: <:<[A, Float]): Float

    Permalink

    Get the element at the specified index.

  76. def fold[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  77. def foldLeft[S](s0: S)(f: (S, A) ⇒ S): S

    Permalink

    Folds over the elements in this chunk from the left.

    Folds over the elements in this chunk from the left.

    Definition Classes
    Chunk → TraversableOnce → GenTraversableOnce
  78. def foldRight[S](s0: S)(f: (A, S) ⇒ S): S

    Permalink

    Folds over the elements in this chunk from the right.

    Folds over the elements in this chunk from the right.

    Definition Classes
    Chunk → IterableLike → TraversableOnce → GenTraversableOnce
  79. final def foldWhile[S](s0: S)(pred: (S) ⇒ Boolean)(f: (S, A) ⇒ S): S

    Permalink

    Folds over the elements in this chunk from the left.

    Folds over the elements in this chunk from the left. Stops the fold early when the condition is not fulfilled.

  80. final def foldWhileZIO[R, E, S](z: S)(pred: (S) ⇒ Boolean)(f: (S, A) ⇒ ZIO[R, E, S])(implicit trace: Trace): ZIO[R, E, S]

    Permalink
  81. final def foldZIO[R, E, S](s: S)(f: (S, A) ⇒ ZIO[R, E, S])(implicit trace: Trace): ZIO[R, E, S]

    Permalink

    Effectfully folds over the elements in this chunk from the left.

  82. final def forall(f: (A) ⇒ Boolean): Boolean

    Permalink

    Determines whether a predicate is satisfied for all elements of this chunk.

    Determines whether a predicate is satisfied for all elements of this chunk.

    Definition Classes
    Chunk → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  83. def foreach[U](f: (A) ⇒ U): Unit

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  84. def genericBuilder[B]: Builder[B, Chunk[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
  85. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  86. def groupBy[K](f: (A) ⇒ K): Map[K, Chunk[A]]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  87. def grouped(size: Int): Iterator[Chunk[A]]

    Permalink
    Definition Classes
    IterableLike
  88. def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  89. final def hashCode(): Int

    Permalink
    Definition Classes
    Chunk → IndexedSeqLike → GenSeqLike → AnyRef → Any
  90. def head: A

    Permalink

    Returns the first element of this chunk.

    Returns the first element of this chunk. Note that this method is partial in that it will throw an exception if the chunk is empty. Consider using headOption to explicitly handle the possibility that the chunk is empty or iterating over the elements of the chunk in lower level, performance sensitive code unless you really only need the first element of the chunk.

    Definition Classes
    Chunk → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike
  91. final def headOption: Option[A]

    Permalink

    Returns the first element of this chunk if it exists.

    Returns the first element of this chunk if it exists.

    Definition Classes
    Chunk → TraversableLike → GenTraversableLike
  92. def indexOf[B >: A](elem: B, from: Int): Int

    Permalink
    Definition Classes
    GenSeqLike
  93. def indexOf[B >: A](elem: B): Int

    Permalink
    Definition Classes
    GenSeqLike
  94. def indexOfSlice[B >: A](that: GenSeq[B], from: Int): Int

    Permalink
    Definition Classes
    SeqLike
  95. def indexOfSlice[B >: A](that: GenSeq[B]): Int

    Permalink
    Definition Classes
    SeqLike
  96. final def indexWhere(f: (A) ⇒ Boolean, from: Int): Int

    Permalink

    Returns the first index for which the given predicate is satisfied after or at some given index.

    Returns the first index for which the given predicate is satisfied after or at some given index.

    Definition Classes
    Chunk → SeqLike → GenSeqLike
  97. final def indexWhere(f: (A) ⇒ Boolean): Int

    Permalink

    Returns the first index for which the given predicate is satisfied.

    Returns the first index for which the given predicate is satisfied.

    Definition Classes
    ChunkLike → GenSeqLike
  98. def indices: Range

    Permalink
    Definition Classes
    SeqLike
  99. def init: Chunk[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  100. def inits: Iterator[Chunk[A]]

    Permalink
    Definition Classes
    TraversableLike
  101. def int(index: Int)(implicit ev: <:<[A, Int]): Int

    Permalink

    Get the element at the specified index.

  102. def intersect[B >: A](that: GenSeq[B]): Chunk[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  103. def isDefinedAt(idx: Int): Boolean

    Permalink
    Definition Classes
    GenSeqLike
  104. final def isEmpty: Boolean

    Permalink

    Determines if the chunk is empty.

    Determines if the chunk is empty.

    Definition Classes
    Chunk → SeqLike → IterableLike → GenericTraversableTemplate → TraversableLike → TraversableOnce → GenTraversableOnce
  105. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  106. final def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  107. def iterator: Iterator[A]

    Permalink
    Definition Classes
    IndexedSeqLike → IterableLike → GenIterableLike
  108. def last: A

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  109. def lastIndexOf[B >: A](elem: B, end: Int): Int

    Permalink
    Definition Classes
    GenSeqLike
  110. def lastIndexOf[B >: A](elem: B): Int

    Permalink
    Definition Classes
    GenSeqLike
  111. def lastIndexOfSlice[B >: A](that: GenSeq[B], end: Int): Int

    Permalink
    Definition Classes
    SeqLike
  112. def lastIndexOfSlice[B >: A](that: GenSeq[B]): Int

    Permalink
    Definition Classes
    SeqLike
  113. def lastIndexWhere(p: (A) ⇒ Boolean, end: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  114. def lastIndexWhere(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  115. final def lastOption: Option[A]

    Permalink

    Returns the last element of this chunk if it exists.

    Returns the last element of this chunk if it exists.

    Definition Classes
    Chunk → TraversableLike → GenTraversableLike
  116. def left: Chunk[A]

    Permalink
    Attributes
    protected
  117. def lengthCompare(len: Int): Int

    Permalink
    Definition Classes
    SeqLike
  118. def lift: (Int) ⇒ Option[A]

    Permalink
    Definition Classes
    PartialFunction
  119. def long(index: Int)(implicit ev: <:<[A, Long]): Long

    Permalink

    Get the element at the specified index.

  120. final def map[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink

    Returns a chunk with the elements mapped by the specified function.

    Returns a chunk with the elements mapped by the specified function.

    Definition Classes
    ChunkLike → TraversableLike → GenTraversableLike → FilterMonadic
  121. final def mapAccum[S1, B](s1: S1)(f1: (S1, A) ⇒ (S1, B)): (S1, Chunk[B])

    Permalink

    Statefully maps over the chunk, producing new elements of type B.

  122. final def mapAccumZIO[R, E, S1, B](s1: S1)(f1: (S1, A) ⇒ ZIO[R, E, (S1, B)])(implicit trace: Trace): ZIO[R, E, (S1, Chunk[B])]

    Permalink

    Statefully and effectfully maps over the elements of this chunk to produce new elements.

  123. def mapChunk[B](f: (A) ⇒ B): Chunk[B]

    Permalink

    Returns a chunk with the elements mapped by the specified function.

    Returns a chunk with the elements mapped by the specified function.

    Attributes
    protected
  124. final def mapZIO[R, E, B](f: (A) ⇒ ZIO[R, E, B])(implicit trace: Trace): ZIO[R, E, Chunk[B]]

    Permalink

    Effectfully maps the elements of this chunk.

  125. final def mapZIODiscard[R, E](f: (A) ⇒ ZIO[R, E, Any])(implicit trace: Trace): ZIO[R, E, Unit]

    Permalink

    Effectfully maps the elements of this chunk purely for the effects.

  126. final def mapZIOPar[R, E, B](f: (A) ⇒ ZIO[R, E, B])(implicit trace: Trace): ZIO[R, E, Chunk[B]]

    Permalink

    Effectfully maps the elements of this chunk in parallel.

  127. final def mapZIOParDiscard[R, E](f: (A) ⇒ ZIO[R, E, Any])(implicit trace: Trace): ZIO[R, E, Unit]

    Permalink

    Effectfully maps the elements of this chunk in parallel purely for the effects.

  128. def materialize[A1 >: A]: Chunk[A1]

    Permalink

    Materializes a chunk into a chunk backed by an array.

    Materializes a chunk into a chunk backed by an array. This method can improve the performance of bulk operations.

  129. def max[B >: A](implicit cmp: Ordering[B]): A

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  130. def maxBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  131. def min[B >: A](implicit cmp: Ordering[B]): A

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  132. def minBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  133. final def mkString: String

    Permalink

    Generates a readable string representation of this chunk.

    Generates a readable string representation of this chunk.

    Definition Classes
    ChunkLike → TraversableOnce → GenTraversableOnce
  134. final def mkString(sep: String): String

    Permalink

    Generates a readable string representation of this chunk using the specified separator string.

    Generates a readable string representation of this chunk using the specified separator string.

    Definition Classes
    ChunkLike → TraversableOnce → GenTraversableOnce
  135. final def mkString(start: String, sep: String, end: String): String

    Permalink

    Generates a readable string representation of this chunk using the specified start, separator, and end strings.

    Generates a readable string representation of this chunk using the specified start, separator, and end strings.

    Definition Classes
    ChunkLike → TraversableOnce → GenTraversableOnce
  136. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  137. def negate(implicit ev: <:<[A, Boolean]): BitChunkByte

    Permalink

    Returns the bitwise NOT of this chunk.

  138. def newBuilder: ChunkBuilder[A]

    Permalink

    Constructs a new ChunkBuilder.

    Constructs a new ChunkBuilder. This operation allocates mutable state and is not referentially transparent. It is provided for compatibility with Scala's collection library and should not be used for other purposes.

    Attributes
    protected[this]
    Definition Classes
    ChunkLike → GenericTraversableTemplate → TraversableLike → HasNewBuilder
  139. final def nonEmpty: Boolean

    Permalink

    Determines if the chunk is not empty.

    Determines if the chunk is not empty.

    Definition Classes
    ChunkLike → TraversableOnce → GenTraversableOnce
  140. def nonEmptyOrElse[B](ifEmpty: ⇒ B)(fn: (NonEmptyChunk[A]) ⇒ B): B

    Permalink

    Runs fn if a chunk is not empty or returns default value

  141. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  143. def orElse[A1 <: Int, B1 >: A](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Permalink
    Definition Classes
    PartialFunction
  144. def padTo[B >: A, That](len: Int, elem: B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  145. def par: ParSeq[A]

    Permalink
    Definition Classes
    Parallelizable
  146. def parCombiner: Combiner[A, ParSeq[A]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Seq → SeqLike → Iterable → TraversableLike → Parallelizable
  147. def partition(p: (A) ⇒ Boolean): (Chunk[A], Chunk[A])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  148. final def partitionMap[B, C](f: (A) ⇒ Either[B, C]): (Chunk[B], Chunk[C])

    Permalink

    Partitions the elements of this chunk into two chunks using the specified function.

    Partitions the elements of this chunk into two chunks using the specified function.

    Definition Classes
    Chunk → ChunkLike
  149. def patch[B >: A, That](from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  150. def permutations: Iterator[Chunk[A]]

    Permalink
    Definition Classes
    SeqLike
  151. def prefixLength(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  152. def prepend[A1 >: A](a1: A1): Chunk[A1]

    Permalink

    Prepends an element to the chunk.

    Prepends an element to the chunk.

    Attributes
    protected
  153. def product[B >: A](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  154. def reduce[A1 >: A](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  155. def reduceLeft[B >: A](op: (B, A) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  156. def reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  157. def reduceOption[A1 >: A](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  158. def reduceRight[B >: A](op: (A, B) ⇒ B): B

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  159. def reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  160. def repr: Chunk[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  161. def reverse: Chunk[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  162. def reverseIterator: Iterator[A]

    Permalink
    Definition Classes
    SeqLike
  163. def reverseMap[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  164. def reversed: List[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  165. def right: Chunk[A]

    Permalink
    Attributes
    protected
  166. def runWith[U](action: (A) ⇒ U): (Int) ⇒ Boolean

    Permalink
    Definition Classes
    PartialFunction
  167. def sameElements[B >: A](that: GenIterable[B]): Boolean

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  168. def scan[B >: A, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  169. def scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  170. def scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  171. def segmentLength(p: (A) ⇒ Boolean, from: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  172. def seq: IndexedSeq[A]

    Permalink
    Definition Classes
    IndexedSeq → IndexedSeq → IndexedSeqLike → Seq → Seq → GenSeq → GenSeqLike → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  173. def short(index: Int)(implicit ev: <:<[A, Short]): Short

    Permalink

    Get the element at the specified index.

  174. final def size: Int

    Permalink

    The number of elements in the chunk.

    The number of elements in the chunk.

    Definition Classes
    ChunkLike → SeqLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  175. def slice(from: Int, until: Int): Chunk[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  176. def sliding(size: Int, step: Int): Iterator[Chunk[A]]

    Permalink
    Definition Classes
    IterableLike
  177. def sliding(size: Int): Iterator[Chunk[A]]

    Permalink
    Definition Classes
    IterableLike
  178. def sortBy[B](f: (A) ⇒ B)(implicit ord: Ordering[B]): Chunk[A]

    Permalink
    Definition Classes
    SeqLike
  179. def sortWith(lt: (A, A) ⇒ Boolean): Chunk[A]

    Permalink
    Definition Classes
    SeqLike
  180. def sorted[B >: A](implicit ord: Ordering[B]): Chunk[A]

    Permalink
    Definition Classes
    SeqLike
  181. def span(p: (A) ⇒ Boolean): (Chunk[A], Chunk[A])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  182. final def split(n: Int): Chunk[Chunk[A]]

    Permalink

    Splits this chunk into n equally sized chunks.

  183. final def splitAt(n: Int): (Chunk[A], Chunk[A])

    Permalink

    Returns two splits of this chunk at the specified index.

    Returns two splits of this chunk at the specified index.

    Definition Classes
    Chunk → TraversableLike → GenTraversableLike
  184. final def splitWhere(f: (A) ⇒ Boolean): (Chunk[A], Chunk[A])

    Permalink

    Splits this chunk on the first element that matches this predicate.

  185. def startsWith[B](that: GenSeq[B], offset: Int): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  186. def startsWith[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    GenSeqLike
  187. def stringPrefix: String

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  188. def sum[B >: A](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  189. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  190. def tail: Chunk[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  191. def tails: Iterator[Chunk[A]]

    Permalink
    Definition Classes
    TraversableLike
  192. def take(n: Int): Chunk[A]

    Permalink

    Takes the first n elements of the chunk.

    Takes the first n elements of the chunk.

    Definition Classes
    Chunk → IterableLike → TraversableLike → GenTraversableLike
  193. def takeRight(n: Int): Chunk[A]

    Permalink

    Takes the last n elements of the chunk.

    Takes the last n elements of the chunk.

    Definition Classes
    Chunk → IterableLike
  194. def takeWhile(f: (A) ⇒ Boolean): Chunk[A]

    Permalink

    Takes all elements so long as the predicate returns true.

    Takes all elements so long as the predicate returns true.

    Definition Classes
    Chunk → IterableLike → TraversableLike → GenTraversableLike
  195. def takeWhileZIO[R, E](p: (A) ⇒ ZIO[R, E, Boolean])(implicit trace: Trace): ZIO[R, E, Chunk[A]]

    Permalink

    Takes all elements so long as the effectual predicate returns true.

  196. def thisCollection: IndexedSeq[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    IndexedSeqLike → SeqLike → IterableLike → TraversableLike
  197. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, A, Col[A]]): Col[A]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  198. def toArray[A1 >: A](n: Int, dest: Array[A1]): Unit

    Permalink
    Attributes
    protected[zio]
  199. def toArray[A1 >: A](implicit arg0: ClassTag[A1]): Array[A1]

    Permalink

    Converts the chunk into an array.

    Converts the chunk into an array.

    Definition Classes
    Chunk → TraversableOnce → GenTraversableOnce
  200. final def toBinaryString(implicit ev: <:<[A, Boolean]): String

    Permalink

    Renders this chunk of bits as a binary string.

  201. def toBuffer[A1 >: A]: Buffer[A1]

    Permalink
    Definition Classes
    IndexedSeqLike → TraversableOnce → GenTraversableOnce
  202. def toCollection(repr: Chunk[A]): IndexedSeq[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    IndexedSeqLike → SeqLike → IterableLike → TraversableLike
  203. def toIndexedSeq: IndexedSeq[A]

    Permalink
    Definition Classes
    IndexedSeq → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  204. def toIterable: Iterable[A]

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  205. def toIterator: Iterator[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  206. final def toList: List[A]

    Permalink
    Definition Classes
    Chunk → TraversableOnce → GenTraversableOnce
  207. def toMap[T, U](implicit ev: <:<[A, (T, U)]): Map[T, U]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  208. def toPackedByte(implicit ev: <:<[A, Boolean]): Chunk[Byte]

    Permalink
  209. def toPackedInt(endianness: Endianness)(implicit ev: <:<[A, Boolean]): Chunk[Int]

    Permalink
  210. def toPackedLong(endianness: Endianness)(implicit ev: <:<[A, Boolean]): Chunk[Long]

    Permalink
  211. def toSeq: Seq[A]

    Permalink
    Definition Classes
    Seq → SeqLike → GenSeqLike → TraversableOnce → GenTraversableOnce
  212. def toSet[B >: A]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  213. def toStream: Stream[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  214. final def toString(): String

    Permalink
    Definition Classes
    Chunk → SeqLike → Function1 → TraversableLike → AnyRef → Any
  215. def toTraversable: Traversable[A]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  216. final def toVector: Vector[A]

    Permalink
    Definition Classes
    Chunk → TraversableOnce → GenTraversableOnce
  217. def transpose[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): Chunk[Chunk[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  218. def union[B >: A, That](that: GenSeq[B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  219. def unzip[A1, A2](implicit asPair: (A) ⇒ (A1, A2)): (Chunk[A1], Chunk[A2])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  220. def unzip3[A1, A2, A3](implicit asTriple: (A) ⇒ (A1, A2, A3)): (Chunk[A1], Chunk[A2], Chunk[A3])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  221. def update[A1 >: A](index: Int, a1: A1): Chunk[A1]

    Permalink

    Updates an element at the specified index of the chunk.

    Updates an element at the specified index of the chunk.

    Attributes
    protected
  222. final def updated[B >: A, That](index: Int, elem: B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    Permalink
    Definition Classes
    ChunkLike → SeqLike → GenSeqLike
  223. def view(from: Int, until: Int): SeqView[A, Chunk[A]]

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  224. def view: SeqView[A, Chunk[A]]

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  225. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  228. def withFilter(p: (A) ⇒ Boolean): FilterMonadic[A, Chunk[A]]

    Permalink
    Definition Classes
    TraversableLike → FilterMonadic
  229. final def zip[B](that: Chunk[B])(implicit zippable: Zippable[A, B]): Chunk[Out]

    Permalink

    Zips this chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk.

    Zips this chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk. The returned chunk will have the length of the shorter chunk.

  230. def zip[A1 >: A, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Chunk[A], (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  231. final def zipAll[B](that: Chunk[B]): Chunk[(Option[A], Option[B])]

    Permalink

    Zips this chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk, filling in missing values from the shorter chunk with None.

    Zips this chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk, filling in missing values from the shorter chunk with None. The returned chunk will have the length of the longer chunk.

  232. def zipAll[B, A1 >: A, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Chunk[A], (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  233. final def zipAllWith[B, C](that: Chunk[B])(left: (A) ⇒ C, right: (B) ⇒ C)(both: (A, B) ⇒ C): Chunk[C]

    Permalink

    Zips with chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk combined using the specified function both.

    Zips with chunk with the specified chunk to produce a new chunk with pairs of elements from each chunk combined using the specified function both. If one chunk is shorter than the other uses the specified function left or right to map the element that does exist to the result type.

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

    Permalink

    Zips this chunk with the specified chunk using the specified combiner.

  235. final def zipWithIndex: Chunk[(A, Int)]

    Permalink

    Zips this chunk with the index of every element.

    Zips this chunk with the index of every element.

    Definition Classes
    ChunkLike
  236. def zipWithIndex[A1 >: A, That](implicit bf: CanBuildFrom[Chunk[A], (A1, Int), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  237. final def zipWithIndexFrom(indexOffset: Int): Chunk[(A, Int)]

    Permalink

    Zips this chunk with the index of every element, starting from the initial index value.

  238. def |(that: Chunk[Boolean])(implicit ev: <:<[A, Boolean]): BitChunkByte

    Permalink

    Returns the bitwise OR of this chunk and the specified chunk.

Inherited from Serializable

Inherited from Serializable

Inherited from ChunkLike[A]

Inherited from IndexedSeq[A]

Inherited from IndexedSeq[A]

Inherited from IndexedSeqLike[A, Chunk[A]]

Inherited from Seq[A]

Inherited from Seq[A]

Inherited from SeqLike[A, Chunk[A]]

Inherited from GenSeq[A]

Inherited from GenSeqLike[A, Chunk[A]]

Inherited from PartialFunction[Int, A]

Inherited from (Int) ⇒ A

Inherited from Iterable[A]

Inherited from Iterable[A]

Inherited from IterableLike[A, Chunk[A]]

Inherited from Equals

Inherited from GenIterable[A]

Inherited from GenIterableLike[A, Chunk[A]]

Inherited from Traversable[A]

Inherited from Immutable

Inherited from Traversable[A]

Inherited from GenTraversable[A]

Inherited from GenericTraversableTemplate[A, Chunk]

Inherited from TraversableLike[A, Chunk[A]]

Inherited from GenTraversableLike[A, Chunk[A]]

Inherited from Parallelizable[A, ParSeq[A]]

Inherited from TraversableOnce[A]

Inherited from GenTraversableOnce[A]

Inherited from FilterMonadic[A, Chunk[A]]

Inherited from HasNewBuilder[A, Chunk[A]]

Inherited from AnyRef

Inherited from Any

Ungrouped