Diagram#
- class discopy.biclosed.Diagram(inside, dom, cod, _scan=True)[source]#
Bases:
discopy.monoidal.Diagram,discopy.abc.BiclosedCategoryA biclosed diagram is a monoidal diagram with
CurryandEvalboxes.- Parameters:
- curry(n=1, left=False)[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=False)[source]#
Uncurry a biclosed diagram by composing it with
Diagram.ev().