Packages

sealed trait Chunk[+A] extends ChunkLike[A]

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]
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Chunk
  2. ChunkLike
  3. IndexedSeq
  4. IndexedSeq
  5. IndexedSeqLike
  6. Seq
  7. Seq
  8. SeqLike
  9. GenSeq
  10. GenSeqLike
  11. PartialFunction
  12. Function1
  13. Iterable
  14. Iterable
  15. IterableLike
  16. Equals
  17. GenIterable
  18. GenIterableLike
  19. Traversable
  20. Immutable
  21. Traversable
  22. GenTraversable
  23. GenericTraversableTemplate
  24. TraversableLike
  25. GenTraversableLike
  26. Parallelizable
  27. TraversableOnce
  28. GenTraversableOnce
  29. FilterMonadic
  30. HasNewBuilder
  31. AnyRef
  32. 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
    Attributes
    protected
    Definition Classes
    IndexedSeqLike
    Annotations
    @SerialVersionUID()
  2. type Self = Chunk[A]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  3. class WithFilter extends FilterMonadic[A, Repr]
    Definition Classes
    TraversableLike

Abstract Value Members

  1. abstract def apply(idx: Int): A
    Definition Classes
    SeqLike → GenSeqLike
  2. abstract def length: Int
    Definition Classes
    SeqLike → GenSeqLike

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ++[A1 >: A](that: NonEmptyChunk[A1]): NonEmptyChunk[A1]
  4. final def ++[A1 >: A](that: Chunk[A1]): Chunk[A1]

    Returns the concatenation of this chunk with the specified chunk.

  5. def ++[B >: A, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  6. def ++:[B >: A, That](that: Traversable[B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That
    Definition Classes
    TraversableLike
  7. def ++:[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That
    Definition Classes
    TraversableLike
  8. final def +:[A1 >: A, That](a1: A1)(implicit bf: CanBuildFrom[Chunk[A], A1, That]): That
    Definition Classes
    ChunkLike → SeqLike → GenSeqLike
  9. final def :+[A1 >: A, That](a1: A1)(implicit bf: CanBuildFrom[Chunk[A], A1, That]): That
    Definition Classes
    ChunkLike → SeqLike → GenSeqLike
  10. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def addString(b: StringBuilder): StringBuilder
    Definition Classes
    TraversableOnce
  12. def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    TraversableOnce
  13. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    TraversableOnce
  14. def aggregate[B](z: ⇒ B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  15. def andThen[C](k: (A) ⇒ C): PartialFunction[Int, C]
    Definition Classes
    PartialFunction → Function1
  16. def append[A1 >: A](a1: A1): Chunk[A1]

    Appends an element to the chunk.

    Appends an element to the chunk.

    Attributes
    protected
  17. def applyOrElse[A1 <: Int, B1 >: A](x: A1, default: (A1) ⇒ B1): B1
    Definition Classes
    PartialFunction
  18. def arrayIterator[A1 >: A]: Iterator[Array[A1]]

    Returns an Iterator that iterates over the arrays underlying this Chunk.

    Returns an Iterator that iterates over the arrays underlying this Chunk. Note that this method is side effecting because it allocates mutable state and should only be used internally.

    Attributes
    protected
  19. final def asBits(implicit ev: <:<[A, Byte]): Chunk[Boolean]

    Converts a chunk of bytes to a chunk of bits.

  20. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  21. def boolean(index: Int)(implicit ev: <:<[A, Boolean]): Boolean

    Get the element at the specified index.

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

    Get the element at the specified index.

  23. def canEqual(that: Any): Boolean
    Definition Classes
    IterableLike → Equals
  24. def char(index: Int)(implicit ev: <:<[A, Char]): Char

    Get the element at the specified index.

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

    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
  27. def collectChunk[B](pf: PartialFunction[A, B]): Chunk[B]

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

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

    Attributes
    protected
  28. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
    Definition Classes
    TraversableOnce
  29. def collectM[R, E, B](pf: PartialFunction[A, ZIO[R, E, B]]): ZIO[R, E, Chunk[B]]

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

  30. def collectWhile[B](pf: PartialFunction[A, B]): Chunk[B]

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

  31. def collectWhileM[R, E, B](pf: PartialFunction[A, ZIO[R, E, B]]): ZIO[R, E, Chunk[B]]
  32. def combinations(n: Int): Iterator[Chunk[A]]
    Definition Classes
    SeqLike
  33. def companion: GenericCompanion[Chunk]
    Definition Classes
    ChunkLike → IndexedSeq → IndexedSeq → Seq → Seq → GenSeq → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → GenericTraversableTemplate
  34. def compose[A](g: (A) ⇒ Int): (A) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  35. def contains[A1 >: A](elem: A1): Boolean
    Definition Classes
    SeqLike
  36. def containsSlice[B](that: GenSeq[B]): Boolean
    Definition Classes
    SeqLike
  37. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  38. def copyToArray[B >: A](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  39. def copyToArray[B >: A](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def copyToBuffer[B >: A](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  41. final def corresponds[B](that: Chunk[B])(f: (A, B) ⇒ Boolean): Boolean

    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.

  42. def corresponds[B](that: GenSeq[B])(p: (A, B) ⇒ Boolean): Boolean
    Definition Classes
    SeqLike → GenSeqLike
  43. def count(p: (A) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  44. def depth: Int
    Attributes
    protected
  45. def diff[B >: A](that: GenSeq[B]): Chunk[A]
    Definition Classes
    SeqLike → GenSeqLike
  46. def distinct: Chunk[A]
    Definition Classes
    SeqLike → GenSeqLike
  47. def double(index: Int)(implicit ev: <:<[A, Double]): Double

    Get the element at the specified index.

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

    Drops the first n elements of the chunk.

    Drops the first n elements of the chunk.

    Definition Classes
    Chunk → IterableLike → TraversableLike → GenTraversableLike
  49. def dropRight(n: Int): Chunk[A]
    Definition Classes
    IterableLike
  50. def dropWhile(f: (A) ⇒ Boolean): Chunk[A]

    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
  51. def dropWhileM[R, E](p: (A) ⇒ ZIO[R, E, Boolean]): ZIO[R, E, Chunk[A]]
  52. def endsWith[B](that: GenSeq[B]): Boolean
    Definition Classes
    SeqLike → GenSeqLike
  53. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  54. final def equals(that: Any): Boolean
    Definition Classes
    Chunk → GenSeqLike → Equals → AnyRef → Any
  55. final def exists(f: (A) ⇒ Boolean): Boolean

    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
  56. def filter(f: (A) ⇒ Boolean): Chunk[A]

    Returns a filtered subset of this chunk.

    Returns a filtered subset of this chunk.

    Definition Classes
    Chunk → TraversableLike → GenTraversableLike
  57. final def filterM[R, E](f: (A) ⇒ ZIO[R, E, Boolean]): ZIO[R, E, Chunk[A]]

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

  58. def filterNot(p: (A) ⇒ Boolean): Chunk[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  59. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  60. final def find(f: (A) ⇒ Boolean): Option[A]

    Returns the first element that satisfies the predicate.

    Returns the first element that satisfies the predicate.

    Definition Classes
    Chunk → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  61. final def flatMap[B, That](f: (A) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That

    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
  62. final def flatMapChunk[B, That](f: (A) ⇒ GenTraversableOnce[B]): Chunk[B]

    The implementation of flatMap for Chunk.

    The implementation of flatMap for Chunk.

    Attributes
    protected
    Definition Classes
    ChunkLike
  63. final def flatten[B](implicit ev: <:<[A, Chunk[B]]): Chunk[B]

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

  64. def flatten[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): Chunk[B]
    Definition Classes
    GenericTraversableTemplate
  65. def float(index: Int)(implicit ev: <:<[A, Float]): Float

    Get the element at the specified index.

  66. def fold[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. def foldLeft[S](s0: S)(f: (S, A) ⇒ S): S

    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
  68. final def foldM[R, E, S](s: S)(f: (S, A) ⇒ ZIO[R, E, S]): ZIO[R, E, S]

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

  69. def foldRight[S](s0: S)(f: (A, S) ⇒ S): S

    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
  70. final def foldWhile[S](s0: S)(pred: (S) ⇒ Boolean)(f: (S, A) ⇒ S): S

    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.

  71. final def foldWhileM[R, E, S](z: S)(pred: (S) ⇒ Boolean)(f: (S, A) ⇒ ZIO[R, E, S]): ZIO[R, E, S]
  72. final def forall(f: (A) ⇒ Boolean): Boolean

    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
  73. def foreach[U](f: (A) ⇒ U): Unit
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  74. def genericBuilder[B]: Builder[B, Chunk[B]]
    Definition Classes
    GenericTraversableTemplate
  75. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  76. def groupBy[K](f: (A) ⇒ K): Map[K, Chunk[A]]
    Definition Classes
    TraversableLike → GenTraversableLike
  77. def grouped(size: Int): Iterator[Chunk[A]]
    Definition Classes
    IterableLike
  78. def hasDefiniteSize: Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  79. final def hashCode(): Int
    Definition Classes
    Chunk → IndexedSeqLike → GenSeqLike → AnyRef → Any
  80. def head: A
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  81. final def headOption: Option[A]

    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
  82. def indexOf[B >: A](elem: B, from: Int): Int
    Definition Classes
    GenSeqLike
  83. def indexOf[B >: A](elem: B): Int
    Definition Classes
    GenSeqLike
  84. def indexOfSlice[B >: A](that: GenSeq[B], from: Int): Int
    Definition Classes
    SeqLike
  85. def indexOfSlice[B >: A](that: GenSeq[B]): Int
    Definition Classes
    SeqLike
  86. final def indexWhere(f: (A) ⇒ Boolean, from: Int): Int

    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
  87. final def indexWhere(f: (A) ⇒ Boolean): Int

    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
  88. def indices: Range
    Definition Classes
    SeqLike
  89. def init: Chunk[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  90. def inits: Iterator[Chunk[A]]
    Definition Classes
    TraversableLike
  91. def int(index: Int)(implicit ev: <:<[A, Int]): Int

    Get the element at the specified index.

  92. def intersect[B >: A](that: GenSeq[B]): Chunk[A]
    Definition Classes
    SeqLike → GenSeqLike
  93. def isDefinedAt(idx: Int): Boolean
    Definition Classes
    GenSeqLike
  94. final def isEmpty: Boolean

    Determines if the chunk is empty.

    Determines if the chunk is empty.

    Definition Classes
    Chunk → SeqLike → IterableLike → GenericTraversableTemplate → TraversableLike → TraversableOnce → GenTraversableOnce
  95. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  96. final def isTraversableAgain: Boolean
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  97. def iterator: Iterator[A]
    Definition Classes
    IndexedSeqLike → IterableLike → GenIterableLike
  98. def last: A
    Definition Classes
    TraversableLike → GenTraversableLike
  99. def lastIndexOf[B >: A](elem: B, end: Int): Int
    Definition Classes
    GenSeqLike
  100. def lastIndexOf[B >: A](elem: B): Int
    Definition Classes
    GenSeqLike
  101. def lastIndexOfSlice[B >: A](that: GenSeq[B], end: Int): Int
    Definition Classes
    SeqLike
  102. def lastIndexOfSlice[B >: A](that: GenSeq[B]): Int
    Definition Classes
    SeqLike
  103. def lastIndexWhere(p: (A) ⇒ Boolean, end: Int): Int
    Definition Classes
    SeqLike → GenSeqLike
  104. def lastIndexWhere(p: (A) ⇒ Boolean): Int
    Definition Classes
    GenSeqLike
  105. final def lastOption: Option[A]

    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
  106. def left: Chunk[A]
    Attributes
    protected
  107. def lengthCompare(len: Int): Int
    Definition Classes
    SeqLike
  108. def lift: (Int) ⇒ Option[A]
    Definition Classes
    PartialFunction
  109. def long(index: Int)(implicit ev: <:<[A, Long]): Long

    Get the element at the specified index.

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

    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
  111. final def mapAccum[S1, B](s1: S1)(f1: (S1, A) ⇒ (S1, B)): (S1, Chunk[B])

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

  112. final def mapAccumM[R, E, S1, B](s1: S1)(f1: (S1, A) ⇒ ZIO[R, E, (S1, B)]): ZIO[R, E, (S1, Chunk[B])]

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

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

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

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

    Attributes
    protected
  114. final def mapM[R, E, B](f: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, Chunk[B]]

    Effectfully maps the elements of this chunk.

  115. final def mapMPar[R, E, B](f: (A) ⇒ ZIO[R, E, B]): ZIO[R, E, Chunk[B]]

    Effectfully maps the elements of this chunk in parallel.

  116. final def mapMPar_[R, E](f: (A) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

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

  117. final def mapM_[R, E](f: (A) ⇒ ZIO[R, E, Any]): ZIO[R, E, Unit]

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

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

    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.

  119. def max[B >: A](implicit cmp: Ordering[B]): A
    Definition Classes
    TraversableOnce → GenTraversableOnce
  120. def maxBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A
    Definition Classes
    TraversableOnce → GenTraversableOnce
  121. def min[B >: A](implicit cmp: Ordering[B]): A
    Definition Classes
    TraversableOnce → GenTraversableOnce
  122. def minBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A
    Definition Classes
    TraversableOnce → GenTraversableOnce
  123. final def mkString: String

    Generates a readable string representation of this chunk.

    Generates a readable string representation of this chunk.

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

    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
  125. final def mkString(start: String, sep: String, end: String): String

    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
  126. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  127. def newBuilder: ChunkBuilder[A]

    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
  128. final def nonEmpty: Boolean

    Determines if the chunk is not empty.

    Determines if the chunk is not empty.

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

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

  130. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  131. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  132. def orElse[A1 <: Int, B1 >: A](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
    Definition Classes
    PartialFunction
  133. def padTo[B >: A, That](len: Int, elem: B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That
    Definition Classes
    SeqLike → GenSeqLike
  134. def par: ParSeq[A]
    Definition Classes
    Parallelizable
  135. def parCombiner: Combiner[A, ParSeq[A]]
    Attributes
    protected[this]
    Definition Classes
    Seq → SeqLike → Iterable → TraversableLike → Parallelizable
  136. def partition(p: (A) ⇒ Boolean): (Chunk[A], Chunk[A])
    Definition Classes
    TraversableLike → GenTraversableLike
  137. final def partitionMap[B, C](f: (A) ⇒ Either[B, C]): (Chunk[B], Chunk[C])

    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
  138. def patch[B >: A, That](from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That
    Definition Classes
    SeqLike → GenSeqLike
  139. def permutations: Iterator[Chunk[A]]
    Definition Classes
    SeqLike
  140. def prefixLength(p: (A) ⇒ Boolean): Int
    Definition Classes
    GenSeqLike
  141. def prepend[A1 >: A](a1: A1): Chunk[A1]

    Prepends an element to the chunk.

    Prepends an element to the chunk.

    Attributes
    protected
  142. def product[B >: A](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  143. def reduce[A1 >: A](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  144. def reduceLeft[B >: A](op: (B, A) ⇒ B): B
    Definition Classes
    TraversableOnce
  145. def reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  146. def reduceOption[A1 >: A](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  147. def reduceRight[B >: A](op: (A, B) ⇒ B): B
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  148. def reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  149. def repr: Chunk[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  150. def reverse: Chunk[A]
    Definition Classes
    SeqLike → GenSeqLike
  151. def reverseArrayIterator[A1 >: A]: Iterator[Array[A1]]

    Returns an Iterator that iterates over the arrays underlying this Chunk in reverse order.

    Returns an Iterator that iterates over the arrays underlying this Chunk in reverse order. While the arrays will be iterated over in reverse order the ordering of elements in the arrays themselves will not be changed. Note that this method is side effecting because it allocates mutable state and should only be used internally.

    Attributes
    protected
  152. def reverseIterator: Iterator[A]
    Definition Classes
    SeqLike
  153. def reverseMap[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That
    Definition Classes
    SeqLike → GenSeqLike
  154. def reversed: List[A]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  155. def right: Chunk[A]
    Attributes
    protected
  156. def runWith[U](action: (A) ⇒ U): (Int) ⇒ Boolean
    Definition Classes
    PartialFunction
  157. def sameElements[B >: A](that: GenIterable[B]): Boolean
    Definition Classes
    IterableLike → GenIterableLike
  158. def scan[B >: A, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Chunk[A], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  159. def scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  160. def scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That
    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.

  161. def segmentLength(p: (A) ⇒ Boolean, from: Int): Int
    Definition Classes
    SeqLike → GenSeqLike
  162. def seq: IndexedSeq[A]
    Definition Classes
    IndexedSeq → IndexedSeq → IndexedSeqLike → Seq → Seq → GenSeq → GenSeqLike → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  163. def short(index: Int)(implicit ev: <:<[A, Short]): Short

    Get the element at the specified index.

  164. final def size: Int

    The number of elements in the chunk.

    The number of elements in the chunk.

    Definition Classes
    ChunkLike → SeqLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  165. def sizeHintIfCheap: Int
    Attributes
    protected[collection]
    Definition Classes
    IndexedSeqLike → GenTraversableOnce
  166. def slice(from: Int, until: Int): Chunk[A]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  167. def sliding(size: Int, step: Int): Iterator[Chunk[A]]
    Definition Classes
    IterableLike
  168. def sliding(size: Int): Iterator[Chunk[A]]
    Definition Classes
    IterableLike
  169. def sortBy[B](f: (A) ⇒ B)(implicit ord: Ordering[B]): Chunk[A]
    Definition Classes
    SeqLike
  170. def sortWith(lt: (A, A) ⇒ Boolean): Chunk[A]
    Definition Classes
    SeqLike
  171. def sorted[B >: A](implicit ord: Ordering[B]): Chunk[A]
    Definition Classes
    SeqLike
  172. def span(p: (A) ⇒ Boolean): (Chunk[A], Chunk[A])
    Definition Classes
    TraversableLike → GenTraversableLike
  173. final def splitAt(n: Int): (Chunk[A], Chunk[A])

    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
  174. final def splitWhere(f: (A) ⇒ Boolean): (Chunk[A], Chunk[A])

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

  175. def startsWith[B](that: GenSeq[B], offset: Int): Boolean
    Definition Classes
    SeqLike → GenSeqLike
  176. def startsWith[B](that: GenSeq[B]): Boolean
    Definition Classes
    GenSeqLike
  177. def stringPrefix: String
    Definition Classes
    TraversableLike → GenTraversableLike
  178. def sum[B >: A](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  179. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  180. def tail: Chunk[A]
    Definition Classes
    TraversableLike → GenTraversableLike
  181. def tails: Iterator[Chunk[A]]
    Definition Classes
    TraversableLike
  182. def take(n: Int): Chunk[A]

    Takes the first n elements of the chunk.

    Takes the first n elements of the chunk.

    Definition Classes
    Chunk → IterableLike → TraversableLike → GenTraversableLike
  183. def takeRight(n: Int): Chunk[A]
    Definition Classes
    IterableLike
  184. def takeWhile(f: (A) ⇒ Boolean): Chunk[A]

    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
  185. def thisCollection: IndexedSeq[A]
    Attributes
    protected[this]
    Definition Classes
    IndexedSeqLike → SeqLike → IterableLike → TraversableLike
  186. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, A, Col[A]]): Col[A]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  187. def toArray[A1 >: A](n: Int, dest: Array[A1]): Unit
    Attributes
    protected[zio]
  188. def toArray[A1 >: A](implicit arg0: ClassTag[A1]): Array[A1]

    Converts the chunk into an array.

    Converts the chunk into an array.

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

    Renders this chunk of bits as a binary string.

  190. def toBuffer[A1 >: A]: Buffer[A1]
    Definition Classes
    IndexedSeqLike → TraversableOnce → GenTraversableOnce
  191. def toCollection(repr: Chunk[A]): IndexedSeq[A]
    Attributes
    protected[this]
    Definition Classes
    IndexedSeqLike → SeqLike → IterableLike → TraversableLike
  192. def toIndexedSeq: IndexedSeq[A]
    Definition Classes
    IndexedSeq → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  193. def toIterable: Iterable[A]
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  194. def toIterator: Iterator[A]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  195. final def toList: List[A]
    Definition Classes
    Chunk → TraversableOnce → GenTraversableOnce
  196. def toMap[T, U](implicit ev: <:<[A, (T, U)]): Map[T, U]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  197. def toSeq: Seq[A]
    Definition Classes
    Seq → SeqLike → GenSeqLike → TraversableOnce → GenTraversableOnce
  198. def toSet[B >: A]: Set[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  199. def toStream: Stream[A]
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  200. final def toString(): String
    Definition Classes
    Chunk → SeqLike → Function1 → TraversableLike → AnyRef → Any
  201. def toTraversable: Traversable[A]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  202. final def toVector: Vector[A]
    Definition Classes
    Chunk → TraversableOnce → GenTraversableOnce
  203. def transpose[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): Chunk[Chunk[B]]
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

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

  204. def union[B >: A, That](that: GenSeq[B])(implicit bf: CanBuildFrom[Chunk[A], B, That]): That
    Definition Classes
    SeqLike → GenSeqLike
  205. def unzip[A1, A2](implicit asPair: (A) ⇒ (A1, A2)): (Chunk[A1], Chunk[A2])
    Definition Classes
    GenericTraversableTemplate
  206. def unzip3[A1, A2, A3](implicit asTriple: (A) ⇒ (A1, A2, A3)): (Chunk[A1], Chunk[A2], Chunk[A3])
    Definition Classes
    GenericTraversableTemplate
  207. def updated[B >: A, That](index: Int, elem: B)(implicit bf: CanBuildFrom[Chunk[A], B, That]): That
    Definition Classes
    SeqLike → GenSeqLike
  208. def view(from: Int, until: Int): SeqView[A, Chunk[A]]
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  209. def view: SeqView[A, Chunk[A]]
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  210. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  211. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  212. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  213. def withFilter(p: (A) ⇒ Boolean): FilterMonadic[A, Chunk[A]]
    Definition Classes
    TraversableLike → FilterMonadic
  214. final def zip[B](that: Chunk[B]): Chunk[(A, B)]

    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.

  215. def zip[A1 >: A, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Chunk[A], (A1, B), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  216. final def zipAll[B](that: Chunk[B]): Chunk[(Option[A], Option[B])]

    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.

  217. def zipAll[B, A1 >: A, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Chunk[A], (A1, B), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  218. final def zipAllWith[B, C](that: Chunk[B])(left: (A) ⇒ C, right: (B) ⇒ C)(both: (A, B) ⇒ C): Chunk[C]

    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.

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

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

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

    Zips this chunk with the index of every element.

    Zips this chunk with the index of every element.

    Definition Classes
    ChunkLike
  221. def zipWithIndex[A1 >: A, That](implicit bf: CanBuildFrom[Chunk[A], (A1, Int), That]): That
    Definition Classes
    IterableLike → GenIterableLike
  222. final def zipWithIndexFrom(indexOffset: Int): Chunk[(A, Int)]

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

Deprecated Value Members

  1. final def +[A1 >: A](a: A1): Chunk[A1]

    Appends an element to the chunk

    Appends an element to the chunk

    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use :+

  2. def /:[B](z: B)(op: (B, A) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.10) Use foldLeft instead of /:

  3. def :\[B](z: B)(op: (A, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.10) Use foldRight instead of :\

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