Permutations of an array - APL
In Dyalog APL, there's a predefined function in the
dfns library to generate a matrix of permutations for a list of the numbers from 1 to n.
I want to create the same functionality, except that it should work for any array, not just a range 1 to n, in APL NARS2000.
How do I implement that?