Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine the support for a multiset
ResourceFunction["MultisetSupport"][list] gives the support of the multiset list, effectively sorting the unique elements of list. | |
ResourceFunction["MultisetSupport"][assoc] gives the support of the Association multiset assoc, effectively sorting the keys with non-zero values. |
Give a sorted list of unique elements of the list:
In[1]:= |
Out[1]= |
Give a sorted list of the keys with non-zero values:
In[2]:= |
Out[2]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License