Okay. You’re supposed to use collect:
using Combinatorics: permutations
p = permutations((1, 2, 3), 3);
perms = collect(p)
Okay. You’re supposed to use collect:
using Combinatorics: permutations
p = permutations((1, 2, 3), 3);
perms = collect(p)