disco-lang/disco

Multinomial coefficients should take a bag, not a list

byorgey opened this issue · 1 comments

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?

I'm going to close this. Bags are annoying to have students use in practice...