Returns the permutations of a set.

permutations(List | Vector | Range)

Given a list, vector or range with the elements of a set, returns a list with all the permutations given in lexicographical order.


Given an integer n, returns the number of permutations of a set with n elements, that is n factorial.