Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine the cardinality for a multiset
ResourceFunction["MultisetCardinality"][list] gives the cardinality of the multiset list. | |
ResourceFunction["MultisetCardinality"][assoc] gives the cardinality of the Association multiset assoc, effectively giving the total of the values. |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License