A FIFO queue of chunks that provides an O(1) size method and provides the ability to take and drop individual elements while preserving the chunk structure as much as possible.
A FIFO queue of chunks that provides an O(1) size method and provides the ability to take and drop individual elements while preserving the chunk structure as much as possible.
This is similar to a queue of individual elements but chunk structure is maintained.
- Companion
- object
Value members
Concrete methods
Prepends a chunk to the start of this chunk queue.
Prepends a chunk to the start of this chunk queue.
Drops the first n
elements of this chunk queue in a way that preserves chunk structure.
Drops the first n
elements of this chunk queue in a way that preserves chunk structure.
Drops the right-most n
elements of this chunk queue in a way that preserves chunk structure.
Drops the right-most n
elements of this chunk queue in a way that preserves chunk structure.
check to see if this starts with the items in the given seq should be the same as take(seq.size).toChunk == Chunk.seq(seq)
check to see if this starts with the items in the given seq should be the same as take(seq.size).toChunk == Chunk.seq(seq)
Takes the first n
elements of this chunk queue in a way that preserves chunk structure.
Takes the first n
elements of this chunk queue in a way that preserves chunk structure.
Takes the right-most n
elements of this chunk queue in a way that preserves chunk structure.
Takes the right-most n
elements of this chunk queue in a way that preserves chunk structure.