Returns the concatenation of this chunk with the specified chunk.
Returns a filtered, mapped subset of the elements of this chunk.
Drops the first n
elements of the chunk.
Drops all elements so long as the predicate returns true.
Returns a filtered subset of this chunk.
Returns the concatenation of mapping every element into a new chunk using the specified function.
Flattens a chunk of chunks into a single chunk by concatenating all chunks.
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 left.
Folds over the elements in this chunk from the left. Stops the fold early when the condition is not fulfilled.
Determines if the chunk is empty.
Returns a chunk with the elements mapped by the specified function.
Statefully maps over the chunk, producing new elements of type B
.
Effectfully maps the elements of this chunk.
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 using the specified separator string.
Generates a readable string representation of this chunk using the specified start, separator, and end strings.
Determines if the chunk is not empty.
Returns two splits of this chunk at the specified index.
Takes the first n
elements of the chunk.
Takes all elements so long as the predicate returns true.
Converts the chunk into an array.
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, starting from the initial index value.
Effectfully traverses the elements of this chunk.
Effectfully traverses the elements of this chunk.
(Since version 1.0.0) use mapM
Effectfully traverses the elements of this chunk purely for the effects.
Effectfully traverses the elements of this chunk purely for the effects.
(Since version 1.0.0) use mapM_
A
Chunk[A]
represents a chunk of values of typeA
. 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.