Closed jeromew closed 10 years ago
Hello,
is there an easy way to test for inclusion of a Bag inside another Bag with buckets ? By inclusion I mean nCopies <= nCopies for each keys ?
Thanks
bag1.forEach( function(element) { if( bag1.count(element) <= bag2.count(element) ) { // ... } });
I hope it helps you. Mauricio
Hello,
is there an easy way to test for inclusion of a Bag inside another Bag with buckets ? By inclusion I mean nCopies <= nCopies for each keys ?
Thanks