Appends an element to the chunk
Appends an element to the chunk
Returns the concatenation of this chunk with the specified chunk.
Returns the concatenation of this chunk with the specified chunk.
Converts a chunk of bytes to a chunk of bits.
Converts a chunk of bytes to a chunk of bits.
Get the element at the specified index.
Get the element at the specified index.
Get the element at the specified index.
Get the element at the specified index.
Get the element at the specified index.
Get the element at the specified index.
Returns a filtered, mapped subset of the elements of this chunk.
Returns a filtered, mapped subset of the elements of this chunk.
Returns a filtered, mapped subset of the elements of this chunk.
Returns a filtered, mapped subset of the elements of this chunk.
Returns a filtered, mapped subset of the elements of this chunk based on a .
Returns a filtered, mapped subset of the elements of this chunk based on a .
Transforms all elements of the chunk for as long as the specified partial function is defined.
Transforms all elements of the chunk for as long as the specified partial function is defined.
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.
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.
Get the element at the specified index.
Get the element at the specified index.
Drops the first n
elements of the chunk.
Drops the first n
elements of the chunk.
Drops all elements so long as the predicate returns true.
Drops all elements so long as the predicate returns true.
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.
Returns a filtered subset of this chunk.
Returns a filtered subset of this chunk.
Filters this chunk by the specified effectful predicate, retaining all elements for which the predicate evaluates to true.
Filters this chunk by the specified effectful predicate, retaining all elements for which the predicate evaluates to true.
Returns the first element that satisfies the predicate.
Returns the first element that satisfies the predicate.
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.
The implementation of flatMap
for Chunk
.
The implementation of flatMap
for Chunk
.
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.
Get the element at the specified index.
Get the element at the specified index.
Folds over the elements in this chunk from the left.
Folds over the elements in this chunk from the left.
Effectfully folds over the elements in this chunk from the left.
Effectfully folds over the elements in this chunk from the left.
Folds over the elements in this chunk from the right.
Folds over the elements in this chunk from the right.
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.
Determines whether a predicate is satisfied for all elements of this chunk.
Determines whether a predicate is satisfied for all elements of this chunk.
Returns the first element of this chunk if it exists.
Returns the first element of this chunk if it exists.
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.
Returns the first index for which the given predicate is satisfied.
Returns the first index for which the given predicate is satisfied.
Get the element at the specified index.
Get the element at the specified index.
Determines if the chunk is empty.
Determines if the chunk is empty.
Returns the last element of this chunk if it exists.
Returns the last element of this chunk if it exists.
Get the element at the specified index.
Get the element at the specified index.
Returns a chunk with the elements mapped by the specified function.
Returns a chunk with the elements mapped by the specified function.
Statefully maps over the chunk, producing new elements of type B
.
Statefully maps over the chunk, producing new elements of type B
.
Statefully and effectfully maps over the elements of this chunk to produce new elements.
Statefully and effectfully maps over the elements of this chunk to produce new elements.
Returns a chunk with the elements mapped by the specified function.
Returns a chunk with the elements mapped by the specified function.
Effectfully maps the elements of this chunk.
Effectfully maps the elements of this chunk.
Effectfully maps the elements of this chunk in parallel.
Effectfully maps the elements of this chunk in parallel.
Effectfully maps the elements of this chunk in parallel purely for the effects.
Effectfully maps the elements of this chunk in parallel purely for the effects.
Effectfully maps the elements of this chunk purely for the effects.
Effectfully maps the elements of this chunk purely for the effects.
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.
Generates a readable string representation of this chunk.
Generates a readable string representation of this chunk.
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.
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.
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.
Determines if the chunk is not empty.
Determines if the chunk is not empty.
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.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Get the element at the specified index.
Get the element at the specified index.
The number of elements in the chunk.
The number of elements in the chunk.
Returns two splits of this chunk at the specified index.
Returns two splits of this chunk at the specified index.
Splits this chunk on the first element that matches this predicate.
Splits this chunk on the first element that matches this predicate.
Takes the first n
elements of the chunk.
Takes the first n
elements of the chunk.
Takes all elements so long as the predicate returns true.
Takes all elements so long as the predicate returns true.
Converts the chunk into an array.
Converts the chunk into an array.
Renders this chunk of bits as a binary string.
Renders this chunk of bits as a binary string.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Zips this chunk with the specified chunk using the specified combiner.
Zips this chunk with the specified chunk using the specified combiner.
Zips this chunk with the index of every element.
Zips this chunk with the index of every element.
Zips this chunk with the index of every element, starting from the initial index value.
Zips this chunk with the index of every element, starting from the initial index value.