Diagram#
- class discopy.closed.Diagram(inside, dom, cod, _scan=True)[source]#
Bases:
discopy.monoidal.DiagramA closed diagram is a monoidal diagram with
CurryandEvalboxes.- Parameters:
- curry(n=1, left=True)[source]#
Wrapper around
Currycalled 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().