ChunkLike
represents the capability for a Chunk
to extend Scala's
collection library. Because of changes to Scala's collection library in 2.13,
separate versions of this trait are implemented for 2.11 / 2.12 and 2.13 /
Dotty. This allows code in Chunk
to be written without concern for the
implementation details of Scala's collection library to the maximum extent
possible.
Note that IndexedSeq
is not a referentially transparent interface in that
it exposes methods that are partial (e.g. apply
), allocate mutable state
(e.g. iterator
), or are purely side effecting (e.g. foreach
). Chunk
extends IndexedSeq
to provide interoperability with Scala's collection
library but users should avoid these methods whenever possible.
- Companion:
- object
Value members
Concrete methods
Returns a filtered, mapped subset of the elements of this Chunk
.
Returns a filtered, mapped subset of the elements of this Chunk
.
- Definition Classes
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
Returns a chunk with the elements mapped by the specified function.
Returns a chunk with the elements mapped by the specified function.
- Definition Classes
Inherited methods
- Inherited from:
- SeqOps
- Inherited from:
- IterableOnceOps
- Inherited from:
- IterableOnceOps
- Inherited from:
- SeqOps
- Inherited from:
- SeqOps
- Inherited from:
- SeqOps
- Inherited from:
- SeqOps
- Inherited from:
- SeqOps
- Inherited from:
- IterableOnceOps
- Inherited from:
- IndexedSeq
- Inherited from:
- StrictOptimizedSeqOps
Deprecated and Inherited methods
- Deprecated
[Since version 2.13.0]
Use foldLeft instead of /:- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use foldRight instead of :\\- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use iterableFactory instead- Inherited from:
- IterableOps
- Deprecated
[Since version 2.13.0]
Use `dest ++= coll` instead- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use segmentLength instead of prefixLength- Inherited from:
- SeqOps
- Deprecated
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside- Inherited from:
- IterableOps
- Deprecated
[Since version 2.13.0]
Use .reverseIterator.map(f).to(...) instead of .reverseMap(f)- Inherited from:
- SeqOps
- Deprecated
[Since version 2.13.0]
Iterable.seq always returns the iterable itself- Inherited from:
- Iterable
- Deprecated
[Since version 2.13.7]
toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections- Inherited from:
- Iterable
- Deprecated
[Since version 2.13.0]
Use .iterator instead of .toIterator- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream- Inherited from:
- IterableOnceOps
- Deprecated
[Since version 2.13.0]
toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections- Inherited from:
- IterableOps
- Deprecated
[Since version 2.13.0]
Use `concat` instead- Inherited from:
- SeqOps
- Deprecated
[Since version 2.13.0]
Use .view.slice(from, until) instead of .view(from, until)- Definition Classes
- Inherited from:
- IndexedSeqOps
Concrete fields
Returns a SeqFactory
that can construct Chunk
values. The SeqFactory
exposes a newBuilder
method that is not referentially transparent because
it allocates mutable state.
Returns a SeqFactory
that can construct Chunk
values. The SeqFactory
exposes a newBuilder
method that is not referentially transparent because
it allocates mutable state.