Ask Your Question

Revision history [back]

Set of lists behaves badly

I am running SageMath 10.6 (downloaded from binary) in a terminal under MacOS. The following happens:

sage: x = [[0],[0]]
sage: Set(x)
Set of elements of [[0], [0]]
sage: Set(x).cardinality()
2

There may be a workaround, but this shouldn't happen, should it?