TupleElement

zio.blocks.typeid.TupleElement
final case class TupleElement(label: Option[String], tpe: TypeRepr)

An element of a tuple type.

In Scala 3.5+, tuple elements can have labels (named tuples): (name: String, age: Int)

Value parameters

label

Optional label for named tuples

tpe

The type of this element

Attributes

Source
TypeRepr.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala