PermutationQ

PermutationQ[p]
yields True if is a list representing a permutation and False otherwise.

DetailsDetails