SeqConstructor

zio.blocks.schema.binding.SeqConstructor
See theSeqConstructor companion trait

The sequence constructors for the standard collections.

Attributes

Companion
trait
Source
SeqConstructor.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

class ArrayBuilder[A](var buffer: Array[A], var size: Int, val ct: ClassTag[A])

The builder of the array-backed constructors: the first size elements of buffer are the ones added so far. When buffer is full, adding an element replaces it with a copy of twice the length. ct creates arrays of the element type.

The builder of the array-backed constructors: the first size elements of buffer are the ones added so far. When buffer is full, adding an element replaces it with a copy of twice the length. ct creates arrays of the element type.

Attributes

Source
SeqConstructor.scala
Supertypes
class Object
trait Matchable
class Any

Builds a Chunk.

Builds a Chunk.

Attributes

Source
SeqConstructor.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object indexedSeqConstructor extends SeqConstructor[IndexedSeq]

Builds an immutable IndexedSeq, which is a Vector.

Builds an immutable IndexedSeq, which is a Vector.

Attributes

Source
SeqConstructor.scala
Supertypes
trait SeqConstructor[IndexedSeq]
class Object
trait Matchable
class Any
Self type
object listConstructor extends SeqConstructor[List]

Builds a List.

Builds a List.

Attributes

Source
SeqConstructor.scala
Supertypes
trait SeqConstructor[List]
class Object
trait Matchable
class Any
Self type
object seqConstructor extends SeqConstructor[Seq]

Builds an immutable Seq, which is a List.

Builds an immutable Seq, which is a List.

Attributes

Source
SeqConstructor.scala
Supertypes
trait SeqConstructor[Seq]
class Object
trait Matchable
class Any
Self type
object setConstructor extends SeqConstructor[Set]

Builds an immutable Set.

Builds an immutable Set.

Attributes

Source
SeqConstructor.scala
Supertypes
trait SeqConstructor[Set]
class Object
trait Matchable
class Any
Self type
object vectorConstructor extends SeqConstructor[Vector]

Builds a Vector.

Builds a Vector.

Attributes

Source
SeqConstructor.scala
Supertypes
trait SeqConstructor[Vector]
class Object
trait Matchable
class Any
Self type

Givens

Givens

Builds an Array of the element type, trimmed to the number of elements.

Builds an Array of the element type, trimmed to the number of elements.

Attributes

Source
SeqConstructor.scala

Builds an immutable ArraySeq that wraps the builder's array, trimmed to size, without copying it again.

Builds an immutable ArraySeq that wraps the builder's array, trimmed to size, without copying it again.

Attributes

Source
SeqConstructor.scala

Builds a Chunk.

Builds a Chunk.

Attributes

Source
SeqConstructor.scala

Builds an IArray of the element type, trimmed to the number of elements. Scala 3 only.

Builds an IArray of the element type, trimmed to the number of elements. Scala 3 only.

Attributes

Source
SeqConstructor.scala

Builds an immutable IndexedSeq, which is a Vector.

Builds an immutable IndexedSeq, which is a Vector.

Attributes

Source
SeqConstructor.scala

Builds a List.

Builds a List.

Attributes

Source
SeqConstructor.scala

Builds an immutable Seq, which is a List.

Builds an immutable Seq, which is a List.

Attributes

Source
SeqConstructor.scala

Builds an immutable Set.

Builds an immutable Set.

Attributes

Source
SeqConstructor.scala

Builds a Vector.

Builds a Vector.

Attributes

Source
SeqConstructor.scala