zio.blocks.schema.binding.Binding.Seq
See theSeq companion object
final case class Seq[C[_], +A](constructor: SeqConstructor[C], deconstructor: SeqDeconstructor[C]) extends Binding[Seq[C], C[A]]
The binding of a sequence node for the collection type constructor C: constructor builds a C[A] element by element, and deconstructor reads one back as its elements and size. Neither depends on the element type A, so one binding serves every element type, which is why BindingResolver stores sequence bindings by C alone.
Attributes
- Companion
- object
- Source
- Binding.scala
- Graph
-
- Supertypes
Members list
In this article