Skip to main content

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.

combinatorics.permutations.calc.png

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

combinatorics.permutations2.calc.png