A NonEmptyChunk
is a Chunk
that is guaranteed to contain at least one element. As a result, operations which would not be safe when performed on Chunk
, such as head
or reduce
, are safe when performed on NonEmptyChunk
. Operations on NonEmptyChunk
which could potentially return an empty chunk will return a Chunk
instead.
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Self type
Members list
Value members
Abstract methods
Concrete methods
Returns the bitwise AND of this chunk and the specified chunk.
Returns the bitwise AND of this chunk and the specified chunk.
Attributes
Returns the concatenation of this chunk with the specified chunk.
Returns the concatenation of this chunk with the specified chunk.
Attributes
Returns the concatenation of this chunk with the specified chunk.
Returns the concatenation of this chunk with the specified chunk.
Attributes
Appends the specified Chunk
to the end of this NonEmptyChunk
.
Appends the specified Chunk
to the end of this NonEmptyChunk
.
Attributes
A symbolic alias for prepended
.
A symbolic alias for prepended
.
Attributes
A symbolic alias for appended
.
A symbolic alias for appended
.
Attributes
Returns the bitwise XOR of this chunk and the specified chunk.
Returns the bitwise XOR of this chunk and the specified chunk.
Attributes
A named alias for ++
.
A named alias for ++
.
Attributes
Appends a single element to the end of this NonEmptyChunk
.
Appends a single element to the end of this NonEmptyChunk
.
Attributes
Converts this NonEmptyChunk
of bytes to a NonEmptyChunk
of bits.
Converts this NonEmptyChunk
of bytes to a NonEmptyChunk
of bits.
Attributes
Converts a chunk of bytes to a chunk of bits.
Converts a chunk of bytes to a chunk of bits.
Attributes
Converts a chunk of ints to a chunk of bits.
Converts a chunk of ints to a chunk of bits.
Attributes
Converts this NonEmptyChunk
of ints to a NonEmptyChunk
of bits.
Converts this NonEmptyChunk
of ints to a NonEmptyChunk
of bits.
Attributes
Converts a chunk of longs to a chunk of bits.
Converts a chunk of longs to a chunk of bits.
Attributes
Converts this NonEmptyChunk
of longs to a NonEmptyChunk
of bits.
Converts this NonEmptyChunk
of longs to a NonEmptyChunk
of bits.
Attributes
Crates a new String based on this chunks data.
Crates a new String based on this chunks data.
Attributes
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.
Attributes
Get the element at the specified index.
Get the element at the specified index.
Attributes
Get the element at the specified index.
Get the element at the specified index.
Attributes
Get the element at the specified index.
Get the element at the specified index.
Attributes
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.
Attributes
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 .
Attributes
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.
Attributes
Deduplicates adjacent elements that are identical.
Deduplicates adjacent elements that are identical.
Attributes
Get the element at the specified index.
Get the element at the specified index.
Attributes
Drops all elements until the predicate returns true.
Drops all elements until the predicate returns true.
Attributes
Drops all elements until the effectful predicate returns true.
Drops all elements until the effectful predicate returns true.
Attributes
Drops all elements so long as the effectful predicate returns true.
Drops all elements so long as the effectful predicate returns true.
Attributes
Returns whether this NonEmptyChunk
and the specified NonEmptyChunk
are equal to each other.
Returns whether this NonEmptyChunk
and the specified NonEmptyChunk
are equal to each other.
Attributes
- Definition Classes
-
Any
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.
Attributes
Returns the first element that satisfies the effectful predicate.
Returns the first element that satisfies the effectful predicate.
Attributes
Maps each element of this NonEmptyChunk
to a new NonEmptyChunk
and then concatenates them together.
Maps each element of this NonEmptyChunk
to a new NonEmptyChunk
and then concatenates them together.
Attributes
Flattens a NonEmptyChunk
of NonEmptyChunk
values to a single NonEmptyChunk
.
Flattens a NonEmptyChunk
of NonEmptyChunk
values to a single NonEmptyChunk
.
Attributes
Get the element at the specified index.
Get the element at the specified index.
Attributes
Folds over the elements in this chunk from the left. Stops the fold early when the condition is not fulfilled.
Folds over the elements in this chunk from the left. Stops the fold early when the condition is not fulfilled.
Attributes
Effectfully folds over the elements in this chunk from the left.
Effectfully folds over the elements in this chunk from the left.
Attributes
Returns the hashcode of this NonEmptyChunk
.
Returns the hashcode of this NonEmptyChunk
.
Attributes
- Definition Classes
-
Any
Get the element at the specified index.
Get the element at the specified index.
Attributes
Get the element at the specified index.
Get the element at the specified index.
Attributes
Transforms the elements of this NonEmptyChunk
with the specified function.
Transforms the elements of this NonEmptyChunk
with the specified function.
Attributes
Statefully maps over the chunk, producing new elements of type B
.
Statefully maps over the chunk, producing new elements of type B
.
Attributes
Maps over the elements of this NonEmptyChunk
, maintaining some state along the way.
Maps over the elements of this NonEmptyChunk
, maintaining some state along the way.
Attributes
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.
Attributes
Effectfully maps over the elements of this NonEmptyChunk
, maintaining some state along the way.
Effectfully maps over the elements of this NonEmptyChunk
, maintaining some state along the way.
Attributes
Effectfully maps the elements of this chunk.
Effectfully maps the elements of this chunk.
Attributes
Effectfully maps the elements of this NonEmptyChunk
.
Effectfully maps the elements of this NonEmptyChunk
.
Attributes
Effectfully maps the elements of this chunk purely for the effects.
Effectfully maps the elements of this chunk purely for the effects.
Attributes
Effectfully maps the elements of this chunk in parallel.
Effectfully maps the elements of this chunk in parallel.
Attributes
Effectfully maps the elements of this NonEmptyChunk
in parallel.
Effectfully maps the elements of this NonEmptyChunk
in parallel.
Attributes
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.
Attributes
Materializes a chunk into a chunk backed by an array. This method can improve the performance of bulk operations.
Materializes a chunk into a chunk backed by an array. This method can improve the performance of bulk operations.
Attributes
Materialize the elements of this NonEmptyChunk
into a NonEmptyChunk
backed by an array.
Materialize the elements of this NonEmptyChunk
into a NonEmptyChunk
backed by an array.
Attributes
Returns the bitwise NOT of this chunk.
Returns the bitwise NOT of this chunk.
Attributes
Runs fn
if a chunk
is not empty or returns default value
Runs fn
if a chunk
is not empty or returns default value
Attributes
Prepends the specified Chunk
to the beginning of this NonEmptyChunk
.
Prepends the specified Chunk
to the beginning of this NonEmptyChunk
.
Attributes
Prepends a single element to the beginning of this NonEmptyChunk
.
Prepends a single element to the beginning of this NonEmptyChunk
.
Attributes
Reduces the elements of this NonEmptyChunk
from left to right using the function map
to transform the first value to the type B
and then the function reduce
to combine the B
value with each other A
value.
Reduces the elements of this NonEmptyChunk
from left to right using the function map
to transform the first value to the type B
and then the function reduce
to combine the B
value with each other A
value.
Attributes
Reduces the elements of this NonEmptyChunk
from right to left using the function map
to transform the first value to the type B
and then the function reduce
to combine the B
value with each other A
value.
Reduces the elements of this NonEmptyChunk
from right to left using the function map
to transform the first value to the type B
and then the function reduce
to combine the B
value with each other A
value.
Attributes
Get the element at the specified index.
Get the element at the specified index.
Attributes
Splits this chunk into n
equally sized chunks.
Splits this chunk into n
equally sized chunks.
Attributes
Splits this chunk on the first element that matches this predicate.
Splits this chunk on the first element that matches this predicate.
Attributes
Takes all elements so long as the effectual predicate returns true.
Takes all elements so long as the effectual predicate returns true.
Attributes
Renders this chunk of bits as a binary string.
Renders this chunk of bits as a binary string.
Attributes
Converts this NonEmptyChunk
to a Chunk
, discarding information about it not being empty.
Converts this NonEmptyChunk
to a Chunk
, discarding information about it not being empty.
Attributes
Converts this NonEmptyChunk
to the ::
case of a List
.
Converts this NonEmptyChunk
to the ::
case of a List
.
Attributes
Renders this NonEmptyChunk
as a String
.
Renders this NonEmptyChunk
as a String
.
Attributes
- Definition Classes
-
Any
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. The returned chunk will have the length of the shorter chunk.
Attributes
Zips this NonEmptyChunk
with the specified NonEmptyChunk
, only keeping as many elements as are in the smaller chunk.
Zips this NonEmptyChunk
with the specified NonEmptyChunk
, only keeping as many elements as are in the smaller chunk.
Attributes
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 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.
Attributes
Zips this NonEmptyChunk
with the specified Chunk
, using None
to "fill in" missing values if one chunk has fewer elements than the other.
Zips this NonEmptyChunk
with the specified Chunk
, using None
to "fill in" missing values if one chunk has fewer elements than the other.
Attributes
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 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.
Attributes
Zips this NonEmptyChunk
with the specified Chunk
, using the specified functions to "fill in" missing values if one chunk has fewer elements than the other.
Zips this NonEmptyChunk
with the specified Chunk
, using the specified functions to "fill in" missing values if one chunk has fewer elements than the other.
Attributes
Zips this chunk with the specified chunk using the specified combiner.
Zips this chunk with the specified chunk using the specified combiner.
Attributes
Zips this NonEmptyChunk
with the specified NonEmptyChunk
, only keeping as many elements as are in the smaller chunk.
Zips this NonEmptyChunk
with the specified NonEmptyChunk
, only keeping as many elements as are in the smaller chunk.
Attributes
Annotates each element of this NonEmptyChunk
with its index.
Annotates each element of this NonEmptyChunk
with its index.
Attributes
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.
Attributes
Annotates each element of this NonEmptyChunk
with its index, with the specified offset.
Annotates each element of this NonEmptyChunk
with its index, with the specified offset.
Attributes
Inherited methods
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IndexedSeq
Attributes
- Inherited from:
- IndexedSeq
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Inherited from:
- IterableOps
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use iterableFactory instead - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details) - Inherited from:
- IterableOnceOps
Attributes
- 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
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
Attributes
- 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
Inherited 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.
Attributes
- Inherited from:
- ChunkLike