Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Perform the union operation on multisets
ResourceFunction["MultisetUnion"][list1,list2,…] gives a sorted list of all the elements that appear in any of the listi. | |
ResourceFunction["MultisetUnion"][list] effectively sorts the elements of list. |
Give a sorted list of elements from all the lists:
In[1]:= | ![]() |
Out[1]= | ![]() |
Multisets as an Association of counts:
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