ArrTBuilder

trait ArrTBuilder[B, ArrB <: ArrImut[B]] extends ArrTBuilderCommon[ArrB]

A type class for the building of efficient compact Immutable Arrays. Instances for this type class for classes / traits you control should go in the companion object of B not the companion object of BB. This is different from the related ArrBinder[BB] type class where instance should go into the BB companion object. The type parameter is named B rather than A, because normally this will be found by an implicit in the context of a function from A => B or A => M[B]. The methods of this trait mutate and therefore must be used with care. Where ever possible they should not be used directly by end users.

Companion
object
trait ArrTBuilderCommon[ArrB]
class Object
trait Matchable
class Any
class AnyBuild[B]
trait ArrArrayDblBuild[A, ArrT]
object DblsBuild
object IntsBuild
object LongsBuild
trait ValueNsArrBuilder[B, ArrB]
trait DblNsArrBuilder[B, ArrB]
trait Dbl2sArrBuilder[B, ArrB]
trait Dbl3sArrBuilder[B, ArrB]
trait Dbl4sArrBuilder[B, ArrB]
trait IntNsArrBuilder[B, ArrB]
trait Int1sArrBuilder[A, ArrT]
trait Int2sArrBuilder[B, ArrB]

Type members

Types

type BuffT <: ArrayLike[B]

Value members

Abstract methods

def arrSet(arr: ArrB, index: Int, value: B): Unit
def buffGrow(buff: BuffT, value: B): Unit

A mutable operation that extends the ArrayBuffer by a single element of type B.

A mutable operation that extends the ArrayBuffer by a single element of type B.

def buffGrowArr(buff: BuffT, arr: ArrB): Unit

A mutable operation that extends the ArrayBuffer with the elements of the Immutable Array operand.

A mutable operation that extends the ArrayBuffer with the elements of the Immutable Array operand.

def newArr(length: Int): ArrB

Concrete methods

def buffContains(buff: BuffT, newElem: B): Boolean
def buffGrowIter(buff: BuffT, values: Iterable[B]): Unit

A mutable operation that extends the ArrayBuffer with the elements of the Iterable operand.

A mutable operation that extends the ArrayBuffer with the elements of the Iterable operand.

def iterMap[A](inp: Iterable[A], f: A => B): ArrB

Inherited methods

def buffToArr(buff: BuffT): ArrB
Inherited from
ArrTBuilderCommon
def newBuff(length: Int): BuffT
Inherited from
ArrTBuilderCommon