After reading the docs more, "Set" is better than "Bag" for this, since "Bag" has a count whereas "Set" is purely for membership.
Having (elem) return False when the value of a Map element is 0 confuses me.
After reading the docs more, "Set" is better than "Bag" for this, since "Bag" has a count whereas "Set" is purely for membership.
Having (elem) return False when the value of a Map element is 0 confuses me.