Functor#
- class discopy.closed.Functor(ob_map=None, ar_map=None, dom=None, cod=None, colour_map=None)[source]#
Bases:
discopy.biclosed.Functor,discopy.markov.FunctorA closed functor is a markov functor that preserves evaluation, currying and packing. When the codomain has no products, i.e. its objects have no
productmethod, the functor strictifies: aProductis mapped to the tensor of its factors andPack,Unpackto the identity. The exception isDrawingwhere a product is drawn as a single wire and its packing as a box.- Parameters: