Popular recipes tagged "multiset"http://code.activestate.com/recipes/tags/multiset/2010-08-18T21:02:41-07:00ActiveState Code RecipesExtension to Python 3 Counter class (Python) 2010-08-18T21:02:41-07:00Paddy McCarthyhttp://code.activestate.com/recipes/users/398009/http://code.activestate.com/recipes/577362-extension-to-python-3-counter-class/ <p style="color: grey"> Python recipe 577362 by <a href="/recipes/users/398009/">Paddy McCarthy</a> (<a href="/recipes/tags/bag/">bag</a>, <a href="/recipes/tags/counter/">counter</a>, <a href="/recipes/tags/multiset/">multiset</a>, <a href="/recipes/tags/python/">python</a>). Revision 3. </p> <p>Adds symmetric difference and cartesian product to the Counter class. I had a use case for the former and Raymond H. asked about the latter so I coded the latter from its Wikipedia description.</p>