Function#
- class discopy.python.additive.Function(inside, dom, cod, is_swap_of=None)[source]#
Bases:
discopy.python.function.Function,discopy.abc.SymmetricCategoryPython functions with disjoint union as tensor.
- Parameters:
Summary
- trace(n=1, left=False)[source]#
The additive trace of a function.
- Parameters:
n – The number of types to trace over.
- braid(y)#
Swap the tags of a disjoint union from x @ y to y @ x.