PermutationListQ

PermutationListQ[expr]
returns True if expr is a valid permutation list and False otherwise.

DetailsDetails

  • A valid permutation list {p1,,pn} is a rearrangement of the integers {1,,n}.
Introduced in 2010
(8.0)