3 lines
149 B
Text
3 lines
149 B
Text
|
|
# Generate all permutations of size t from an array a with possibly duplicated elements.
|
||
|
|
collect(Combinatorics.multiset_permutations([1,1,0,0,0],3))
|