
Last chance! 50% off unlimited learning
Sale ends in
This function produces a matrix whose rows provide all possible permutations of
the set of integers {0, 1, ..., n-1}
.
enumerate.permutations(nItems)
The size of the set {0, 1, ..., n-1}
, i.e., n
.
A matrix of integers, where each row is a permutation.
# NOT RUN {
enumerate.permutations(5)
# }
Run the code above in your browser using DataLab