Get all Permutations of Array?

Found it!

This package, and not “Permutations.jl” has the relevant function.

EDIT: A more performant solution is looking at “nthperm” and “nthperm!” in the same package. Especially if you want to generate it for arrays greater than 1x6

8 Likes