Functor#
- class discopy.balanced.Functor(ob=None, ar=None, dom=None, cod=None)[source]#
Bases:
discopy.braided.Functor
,discopy.traced.Functor
A balanced functor is a braided functor that twists.
- Parameters:
ob (Mapping[monoidal.Ty, monoidal.Ty]) – Map from
monoidal.Ty
tocod.ob
.cod (Category) – The codomain,
Category(Ty, Diagram)
by default.dom (T) –