SeqDeconstructor

zio.blocks.schema.binding.SeqDeconstructor
See theSeqDeconstructor companion object
trait SeqDeconstructor[C[_]]

Reads a collection of type C[A] back as its elements and size: the deconstruction half of a Binding.Seq. The instances for array-backed collections are SeqDeconstructor.SpecializedIndexed, which also read an element by index; the JSON codec and the optics use that when they can.

Type parameters

C

the collection type constructor

Attributes

Companion
object
Source
SeqDeconstructor.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def deconstruct[A](c: C[A]): Iterator[A]

Returns an iterator over the elements of c, in its iteration order.

Returns an iterator over the elements of c, in its iteration order.

Attributes

Source
SeqDeconstructor.scala
def size[A](c: C[A]): Int

Returns the number of elements of c.

Returns the number of elements of c.

Attributes

Source
SeqDeconstructor.scala