powered by
This function produces a matrix whose rows provide all possible permutations of the set \({1, 2, ..., n}\).
enumerate.permutations(nItems)
A matrix of integers, where each row is a permutation.
The size of the set \({1, 2, ..., n}\), i.e., \(n\).
enumerate.permutations(5)
Run the code above in your browser using DataLab