How to use Combinatorics.jl for permutations

Okay. You’re supposed to use collect:

using Combinatorics: permutations
p = permutations((1, 2, 3), 3);
perms = collect(p)