bool_value

Contents

bool_value#

hugr.val.bool_value(b: bool) UnitSum[source]#

Convert a python bool to a HUGR boolean value.

Example

>>> bool_value(True)
TRUE
>>> bool_value(False)
FALSE