Curry#
- class discopy.biclosed.Curry(arg, n=1, left=True)[source]#
Bases:
discopy.monoidal.Bubble,BoxThe currying of a biclosed diagram.
- Parameters:
arg (Diagram) – The diagram to curry.
n – The number of atomic types to curry.
left – Whether to curry on the left or right, default is
True.
Example
>>> x, y, z = map(Ty, "xyz") >>> print(Curry(Box('f', x @ y, z))) Curry(f, 1, True)