def _ascii_art_(self): r""" TESTS:: sage: from sage.combinat.shuffle import SetShuffleProduct sage: ascii_art(SetShuffleProduct([[BinaryTree()], [BinaryTree([]), BinaryTree([[],[]])]], ....: [[1,4]])) Set shuffle product of: [ [ ] ] [ [ o, o ] ] [ [ / \ ] ] [ [ ] ] [ [ ], [ o o ] ] and [ [ 1, 4 ] ] """ from sage.misc.ascii_art import ascii_art, ascii_art_list return ascii_art("Set shuffle product of:") * \ (ascii_art_list(self._l1) + ascii_art(" and ") + ascii_art_list(self._l2))
def _ascii_art_(self): r""" TESTS:: sage: from sage.combinat.shuffle import ShuffleProduct sage: ascii_art(ShuffleProduct([1,2,3],[4,5])) Shuffle product of: [ ] [ ] [ 1, 2, 3 ] and [ 4, 5 ] sage: B = BinaryTree sage: ascii_art(ShuffleProduct([B([]), B([[],[]])], ....: [B([[[],[]],[[],None]])])) Shuffle product of: [ __o__ ] [ ] [ / \ ] [ o, o ] [ o o ] [ / \ ] [ / \ / ] [ o o ] and [ o o o ] """ from sage.misc.ascii_art import ascii_art, ascii_art_list return ascii_art("Shuffle product of:") * \ (ascii_art_list(self._l1) + ascii_art(" and ") + ascii_art_list(self._l2))