How to nest any number of for loops


f(n,k)=multiset_permutations(repeat([permutations(1:n)...],k),k)

k=2
n=2
for p in f(n,k)
    @show p
end