disco
disco copied to clipboard
Multinomial coefficients should take a bag, not a list
The order of elements in the second argument to a multinomial coefficient does not matter, e.g. 10 choose [3,4,3] == 10 choose [4,3,3] == 10 choose [3,3,4]. Would it be better if it actually took a bag instead of a list?