Some#
- class hugr.val.Some(*vals: Value)[source]#
Bases:
Sum
Optional tuple of value, containing a list of values.
Example
>>> some = Some(TRUE, FALSE) >>> str(some) 'Some(TRUE, FALSE)' >>> some.type_() Option(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.