Hello, I would find useful to add to the Bag module the following: SeqToBag(s) == [i \in Range(s) |-> Cardinality({ix \in DOMAIN s: s[ix] = i})] Thanks Mamoun
Hello,
I would find useful to add to the Bag module the following:
SeqToBag(s) ==
[i \in Range(s) |-> Cardinality({ix \in DOMAIN s: s[ix] = i})]
Thanks
Mamoun