mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Branches: main, 11.07
Fix another problem with set_unordlist.singleton_set/2. The implied
(in, in) is semidet mode did not work correctly.
library/set_unordlist.m:
Provide an (in, in) is semidet mode for singleton_set/2 that takes
account of the fact that the representation may contain duplicates.
tests/hard_coded/singleton_dups.{m,exp}:
Extend this test to cover the (in, in) mode.
3 lines
47 B
Plaintext
3 lines
47 B
Plaintext
Singleton with element 1
|
|
(in, in) test passed.
|