What is the difference between a list and a multiset?
data-structures
Solution
No, lists and multisets are different. Order matters in lists, and doesn't in multisets.
(list 1 2 3 2) != (list 2 1 3 2)
(multiset 1 2 2 3) == (multiset 1 3 2 2)
Problem
From my understanding, both lists and multisets are collections of ordered values in which values can occur more than once. Is there any difference?