Returns the bitwise AND of this chunk and the specified chunk.
Returns the bitwise AND of this chunk and the specified chunk.
Concatenates this chunk iterator with the specified chunk iterator.
Concatenates this chunk iterator with the specified chunk iterator.
Returns the concatenation of this chunk with the specified chunk.
Returns the concatenation of this chunk with the specified chunk.
Returns the concatenation of this chunk with the specified chunk.
Returns the concatenation of this chunk with the specified chunk.
Returns the bitwise XOR of this chunk and the specified chunk.
Returns the bitwise XOR of this chunk and the specified chunk.
Appends an element to the chunk.
Appends an element to the chunk.
Converts a chunk of bytes to a chunk of bits.
Converts a chunk of bytes to a chunk of bits.
Converts a chunk of ints to a chunk of bits.
Converts a chunk of ints to a chunk of bits.
Converts a chunk of longs to a chunk of bits.
Converts a chunk of longs to a chunk of bits.
Crates a new String based on this chunk of bytes and using the given charset.
Crates a new String based on this chunk of bytes and using the given charset.
Crates a new String based on this chunks data.
Crates a new String based on this chunks data.
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.
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.
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 .
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.
Deduplicates adjacent elements that are identical.
Deduplicates adjacent elements that are identical.
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 the last n
elements of the chunk.
Drops the last n
elements of the chunk.
Drops all elements until the predicate returns true.
Drops all elements until the predicate returns true.
Drops all elements until the effectful predicate returns true.
Drops all elements until the effectful predicate returns true.
Drops all elements so long as the predicate returns true.
Drops all elements so long as the predicate returns true.
Drops all elements so long as the effectful predicate returns true.
Drops all elements so long as the effectful 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 first element that satisfies the effectful predicate.
Returns the first element that satisfies the effectful 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.
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.
Effectfully folds over the elements in this chunk from the left.
Effectfully folds over the elements in this chunk from the left.
Determines whether a predicate is satisfied for all elements of this chunk.
Determines whether a predicate is satisfied for all elements of this chunk.
Checks if the chunk iterator has another element.
Checks if the chunk iterator has another element.
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.
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.
The length of the iterator.
The length of the iterator.
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 purely for the effects.
Effectfully maps the elements of this chunk purely for the effects.
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.
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.
Returns the bitwise NOT of this chunk.
Returns the bitwise NOT of this chunk.
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.
Gets the next element from the chunk iterator.
Gets the next element from the chunk iterator.
Determines if the chunk is not empty.
Determines if the chunk is not empty.
Runs fn
if a chunk
is not empty or returns default value
Runs fn
if a chunk
is not empty or returns default value
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.
Prepends an element to the chunk.
Prepends an element to the chunk.
(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 a new iterator that is a slice of this iterator.
Returns a new iterator that is a slice of this iterator.
Splits this chunk into n
equally sized chunks.
Splits this chunk into n
equally sized chunks.
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 the last n
elements of the chunk.
Takes the last 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.
Takes all elements so long as the effectual predicate returns true.
Takes all elements so long as the effectual 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.
Updates an element at the specified index of the chunk.
Updates an element at the specified index of the chunk.
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.
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.
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.
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.
Returns the bitwise OR of this chunk and the specified chunk.
Returns the bitwise OR of this chunk and the specified chunk.