It would be lovely if this module defined the __eq method to test for equality by value, i.e. sets {"a", "b"} and {"b", "a"} would compare as true. In the absence of this, the Lua interpreter tests for equality by object identity, i.e. two sets are the same if and only if they refer to the same object in memory, and two different objects with the same value are regarded as not equal.
It would be lovely if this module defined the
__eqmethod to test for equality by value, i.e. sets {"a", "b"} and {"b", "a"} would compare as true. In the absence of this, the Lua interpreter tests for equality by object identity, i.e. two sets are the same if and only if they refer to the same object in memory, and two different objects with the same value are regarded as not equal.