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
- Source
- NonEmptyChunk.scala
- Graph
-
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
Members list
Value members
Abstract methods
Attributes
- Source
- Chunk.scala
Concrete methods
Returns the bitwise AND of this chunk and the specified chunk.
Returns the concatenation of this chunk with the specified chunk.
Returns the concatenation of this chunk with the specified chunk.
Appends the specified Chunk to the end of this NonEmptyChunk.
A symbolic alias for prepended.
A symbolic alias for appended.
Returns the bitwise XOR of this chunk and the specified chunk.
A named alias for ++.
Appends a single element to the end of this NonEmptyChunk.
Appends a single element to the end of this NonEmptyChunk.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Crates a base64 encoded string based on the chunk's data.
Converts this NonEmptyChunk of bytes to a NonEmptyChunk of bits.
Converts this NonEmptyChunk of bytes to a NonEmptyChunk of bits.
Attributes
- Source
- NonEmptyChunk.scala
Converts a chunk of bytes to a chunk of bits.
Converts a chunk of ints to a chunk of bits.
Converts this NonEmptyChunk of ints to a NonEmptyChunk of bits.
Converts this NonEmptyChunk of ints to a NonEmptyChunk of bits.
Attributes
- Source
- NonEmptyChunk.scala
Converts a chunk of longs to a chunk of bits.
Converts this NonEmptyChunk of longs to a NonEmptyChunk of bits.
Converts this NonEmptyChunk of longs to a NonEmptyChunk of bits.
Attributes
- Source
- NonEmptyChunk.scala
Crates a new String based on this chunks data.
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
- Source
- Chunk.scala
Get the element at the specified index.
Get the element at the specified index.
Get the element at the specified index.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
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
- Source
- Chunk.scala
Attributes
- Source
- Chunk.scala
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
- Source
- Chunk.scala
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
- Source
- Chunk.scala
Deduplicates adjacent elements that are identical.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Get the element at the specified index.
Drops all elements until the predicate returns true.
Drops all elements until the effectful predicate returns true.
Drops all elements so long as the effectful predicate returns true.
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
- Source
- NonEmptyChunk.scala
Determines whether a predicate is satisfied for at least one element of this NonEmptyChunk.
Determines whether a predicate is satisfied for at least one element of this NonEmptyChunk.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
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
- Source
- Chunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Returns the first element that satisfies the effectful predicate.
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
- Source
- NonEmptyChunk.scala
Flattens a NonEmptyChunk of NonEmptyChunk values to a single NonEmptyChunk.
Flattens a NonEmptyChunk of NonEmptyChunk values to a single NonEmptyChunk.
Attributes
- Source
- NonEmptyChunk.scala
Get the element at the specified index.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
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
- Source
- Chunk.scala
Attributes
- Source
- Chunk.scala
Effectfully folds over the elements in this chunk from the left.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Groups the values in this NonEmptyChunk using the specified function.
Groups the values in this NonEmptyChunk using the specified function.
Attributes
- Source
- NonEmptyChunk.scala
Groups and transformers the values in this NonEmptyChunk using the specified function.
Groups and transformers the values in this NonEmptyChunk using the specified function.
Attributes
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Returns the hashcode of this NonEmptyChunk.
Returns the hashcode of this NonEmptyChunk.
Attributes
- Definition Classes
-
Any
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Get the element at the specified index.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Get the element at the specified index.
Transforms the elements of this NonEmptyChunk with the specified function.
Transforms the elements of this NonEmptyChunk with the specified function.
Attributes
- Source
- NonEmptyChunk.scala
Statefully maps over the chunk, producing new elements of type B.
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
- Source
- NonEmptyChunk.scala
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
- Source
- Chunk.scala
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
- Source
- NonEmptyChunk.scala
Effectfully maps the elements of this chunk.
Effectfully maps the elements of this NonEmptyChunk.
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 NonEmptyChunk in parallel.
Effectfully maps the elements of this NonEmptyChunk in parallel.
Attributes
- Source
- NonEmptyChunk.scala
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
- Source
- Chunk.scala
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
- Source
- Chunk.scala
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
- Source
- NonEmptyChunk.scala
Returns the bitwise NOT of this chunk.
Runs fn if a chunk is not empty or returns default value
Prepends the specified Chunk to the beginning of this NonEmptyChunk.
Prepends the specified Chunk to the beginning of this NonEmptyChunk.
Attributes
- Source
- NonEmptyChunk.scala
Prepends a single element to the beginning of this NonEmptyChunk.
Prepends a single element to the beginning of this NonEmptyChunk.
Attributes
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
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
- Source
- NonEmptyChunk.scala
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
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Get the element at the specified index.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Splits this chunk into n equally sized chunks.
Splits this chunk on the first element that matches this predicate.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Takes all elements so long as the effectual predicate returns true.
Converts this NonEmptyChunk to an array.
Renders this chunk of bits as a binary string.
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
- Source
- NonEmptyChunk.scala
Converts this NonEmptyChunk to the :: case of a List.
Converts this NonEmptyChunk to an Iterable.
Converts this NonEmptyChunk to an Iterable.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
Converts this NonEmptyChunk to a List.
Attributes
- Source
- Chunk.scala
Attributes
- Source
- Chunk.scala
Attributes
- Source
- Chunk.scala
Renders this NonEmptyChunk as a String.
Renders this NonEmptyChunk as a String.
Attributes
- Definition Classes
-
Any
- Source
- NonEmptyChunk.scala
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
- Source
- Chunk.scala
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
- Source
- NonEmptyChunk.scala
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
- Source
- Chunk.scala
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
- Source
- NonEmptyChunk.scala
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
- Source
- Chunk.scala
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
- Source
- NonEmptyChunk.scala
Zips this chunk with the specified chunk using the specified combiner.
Zips this chunk with the specified chunk using the specified combiner.
Attributes
- Source
- Chunk.scala
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
- Source
- NonEmptyChunk.scala
Annotates each element of this NonEmptyChunk with its index.
Annotates each element of this NonEmptyChunk with its index.
Attributes
- Definition Classes
- Source
- NonEmptyChunk.scala
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
- Source
- Chunk.scala
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
- Source
- NonEmptyChunk.scala
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:
- 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]For sequential collections, prefer `foldLeft(z)(seqop)`. For parallel collections, use `ParIterableLike#aggregate`. - 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