Function

Function#

class hugr.val.Function(body: Hugr)[source]#

Bases: Value

Higher order function value, defined by a Hugr.

Methods

type_

Report the type of the value.

Attributes

body

type_() FunctionType[source]#

Report the type of the value.

Example

>>> TRUE.type_()
Bool