library/bag.m:
Add predicates and a function for efficiently inserting multiple copies of
an item into a bag.
NEWS:
Announce the above additions.
tests/hard_coded/bag_various.{m,exp}:
Extend this test to cover the above.
Estimated hours taken: 1
Branch: main
Add functions bag.count/1, bag.count_unique/1 and predicates bag.member/2
and bag.member/3 to the bag module.
NEWS:
Announce the new predicates and functions.
Minor indentation unification.
library/bag.m:
New functions and predicates.
tests/hard_coded/bag_various.m:
tests/hard_coded/bag_various.exp:
A simple testcase for the new predicates, with expected results.
tests/hard_coded/Mmakefile:
Enabled the test.