To me it would make sense to have multisets like "a occurs once, b occurs five times, c zero times, all other +infinity times". You could construct that as
m = ~(<a,b,c>) + (<a, b, b, b, b, b>)
m is an inverted multiset (ie. the default value is +infinity, not zero), but it has elements of multiplicity 0, 1, 5 and +infinity. So you need something similar to a multiset to implement it.
/ Niels Möller ()
Previous text:
2003-02-06 14:17: Subject: Xor
Then you treat it like a set, the easy way. :)
I guess doing it any other way would need multisets to store the values rather then repeating the elements.
/ Mirar