Attributes
Members list
Type members
Classlikes
An indexed version of Chunk that provides O(1) access to elements.
An indexed version of Chunk that provides O(1) access to elements.
Type parameters
- A
-
the type of elements in the Indexed Chunk
Attributes
- Supertypes
-
class Chunk[A]trait Seq[A]trait SeqOps[A, Seq, Seq[A]]trait Seq[A]trait Equalstrait SeqOps[A, Seq, Seq[A]]trait PartialFunction[Int, A]trait Int => Atrait Iterable[A]trait Iterable[A]trait IterableFactoryDefaults[A, Seq]trait IterableOps[A, Seq, Seq[A]]trait IterableOnceOps[A, Seq, Seq[A]]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Creates a Chunk from a variable number of elements.
Creates a Chunk from a variable number of elements.
Type parameters
- A
-
the type of elements in the Chunk
Value parameters
- values
-
the elements to include in the Chunk
Attributes
- Returns
-
a new Chunk containing the provided values
Returns an empty Chunk.
Returns an empty Chunk.
Type parameters
- A
-
the type of elements in the Chunk
Attributes
- Returns
-
an empty Chunk of type A
Creates a Chunk filled with a specified number of copies of a given value.
Creates a Chunk filled with a specified number of copies of a given value.
Type parameters
- A
-
the type of elements in the Chunk
Value parameters
- n
-
the number of times to repeat the value
- v
-
the value to fill the Chunk with
Attributes
- Returns
-
a new Chunk containing n copies of v
Creates a Chunk from an Array of elements.
Creates a Chunk from an Array of elements.
Type parameters
- A
-
the type of elements in the Array (must be a subtype of AnyRef)
Value parameters
- values
-
the Array to create the Chunk from
Attributes
- Returns
-
a new Chunk.Indexed containing the elements from the Array
Creates a Chunk from a Seq of elements.
Creates a Chunk from a Seq of elements.
Type parameters
- A
-
the type of elements in the Seq
Value parameters
- values
-
the Seq to create the Chunk from
Attributes
- Returns
-
a new Chunk.Indexed containing the elements from the Seq