Compound#
- class discopy.closed.Compound(dom, cod)[source]#
Bases:
TermBaseA term built from other terms, its
parts: aTuple, aProjectionor aLet. Two compound terms are equal when their parts are, and the name is printed from the parts when first read rather than when the term is built, so that building a term is linear in its size where printing every subterm made it quadratic.- Parameters:
- property parts: tuple#
The terms and other data the compound term is built from.