Returns all n factorial permutations of a set
allperms(n)
The size of the set, integer
The function is very basic (the idiom is word(t(partitions::perms(n)))) but is here for completeness.
word(t(partitions::perms(n)))
# NOT RUN { as.cycle(allperms(5)) # }
Run the code above in your browser using DataLab