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'
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.