[erlang-questions] Bug in sets module? Equal sets aren't equal
Mon Feb 20 14:58:28 CET 2017
I've just turned up this little problem:
Erlang/OTP 18 [erts-7.2] [source] [64-bit] [smp:2:2] [async-threads:10] [kernel-poll:false]
3> sets:from_list([[2, 2], [2, -2]]) =:= sets:from_list([[2, -2], [2, 2]]).
Is this expected behaviour, or a bug in the sets module?
How should I compare sets for equality? There's no equality
comparison function in the module. (I can see any number of solutions
I could roll myself, but they're all a bit ugly).
Hugo Mills | I am an opera lover from planet Zog. Take me to your
hugo@REDACTED carfax.org.uk | lieder.
PGP: E2AB1DE4 |
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: Digital signature
More information about the erlang-questions