Skip to content

Commit 4944526

Browse files
committed
Remove unnecessary call to collect
1 parent 82fc13d commit 4944526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/permutations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ julia> collect(multiset_permutations([1,1,2], 3))
286286
```
287287
"""
288288
function multiset_permutations(a, t::Integer)
289-
m = unique(collect(a))
289+
m = unique(a)
290290
f = [sum(c == x for c in a)::Int for x in m]
291291
multiset_permutations(m, f, t)
292292
end

0 commit comments

Comments
 (0)