Swap#
- class discopy.symmetric.Swap(left, right)[source]#
Bases:
discopy.balanced.Braid,BoxThe swap of atomic types
leftandright.- Parameters:
left – The type on the top left and bottom right.
right – The type on the top right and bottom left.
Important
Swapis only defined for atomic types (i.e. of length 1). For complex types, useDiagram.swap()instead.