Diagram#
- class discopy.closed.Diagram(inside, dom, cod, _scan=True)[source]#
Bases:
discopy.monoidal.Diagram
A closed diagram is a monoidal diagram with
Curry
andEval
boxes.- Parameters:
- curry(n=1, left=True)[source]#
Wrapper around
Curry
called byFunctor
.- Parameters:
n – The number of atomic types to curry.
left – Whether to curry on the left or right.
- Return type:
- uncurry(left=True)[source]#
Uncurry a closed diagram by composing it with
Diagram.ev()
.