Permutations
Returns the permutations of a set.
Syntax
permutations(List | Vector | Range)
permutations(Integer)
Description
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 , returns the number of permutations of a set with elements, that is .