Consider the sets a={1} and b={2}. As output I want {1,{2}}. I tried
sage: a={1};b={2}
sage: a.add(b)
and
sage: a.union({b})
but both attempts result in an error:
TypeError: unhashable type: 'set'
1 | initial version |
Consider the sets a={1} and b={2}. As output I want {1,{2}}. I tried
sage: a={1};b={2}
sage: a.add(b)
and
sage: a.union({b})
but both attempts result in an error:
TypeError: unhashable type: 'set'