Chunk

kyo.Chunk
See theChunk companion class
object Chunk

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Chunk.type

Members list

Type members

Classlikes

sealed abstract class Indexed[A] extends Chunk[A]

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 Equals
trait SeqOps[A, Seq, Seq[A]]
trait PartialFunction[Int, A]
trait Int => A
trait 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 Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[A](values: A*): Chunk[A]

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

def empty[A]: Chunk[A]

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

def fill[A](n: Int)(v: A): Chunk[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

def from[A <: AnyRef](values: Array[A]): Indexed[A]

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

def from[A](values: Seq[A]): Indexed[A]

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

Givens

Givens

given derived$CanEqual[A_$_L, A_$_R](implicit x$0: CanEqual[A_$_L, A_$_R]): CanEqual[Chunk[A_$_L], Chunk[A_$_R]]