class

Spacetime::SATS::ProductValue

Inherits Reference < Object

Represents a structural product value (an ordered sequence of AlgebraicValue fields).

Constructors

decode_bsatn(schema : ProductType, decoder : BSATN::Decoder, typespace : Typespace | Nil = nil) : self
Source
new(elements : Array(AlgebraicValue) = [] of AlgebraicValue)
Source
unit
Source

Instance methods

==(other : ProductValue) : Bool
Source
[](index : Int) : AlgebraicValue
Source
[]?(index : Int) : AlgebraicValue | Nil
Source
elements
Source
elements=(elements : Array(AlgebraicValue))
Source
encode_bsatn(encoder : BSATN::Encoder) : Nil
Source
field(schema : ProductType, name : String) : AlgebraicValue | Nil

Looks up a field value by column name given the corresponding ProductType schema.

Source
size
Source