Tuple#
- class hugr.val.Tuple(*vals: Value)[source]#
Bases:
Sum
Tuple or product value, defined by a list of values. Internally a
Sum
with a single variant row.Example
>>> tup = Tuple(TRUE, FALSE) >>> tup Tuple(TRUE, FALSE) >>> tup.type_() Tuple(Bool, Bool)
Methods
Report the type of the value.
Attributes
n_variants
Tag identifying the variant.
defines all possible variants.
The values of this variant row.