Persistent Bags / Multisets

Here's an implementation of a persistent bag/multiset, using a pmap to count elements.

This is pretty similar to collections.Counter in the Python stdlib, but less leaky :)

If you think it's not appropriate for pyrsistent, that's fine, I can release it as a separate library.

Since the PBag class is private (as are PMap, PVector etc) I decided to prefix it with an underscore.

I don't really like the idea of encouraging applications to use identity checks on these types, but I can see that it may have a performance benefit, so I can implement that :)