type/permlist
check for an permutation in list form
Calling Sequence
Parameters
Description
Examples
type( expr, 'permlist' )
expr
-
anything; any Maple expression
The call type( expr, 'permlist' ) returns true if expr is a permutation of the integers {1,2,...,n}, where n=nopsexpr, and returns false otherwise.
A permutation of {1,2,...,n} is a list whose members are exactly these integer, in which each integer occurs exactly once.
type1,2,3,permlist
false
true
type2,1,3,permlist
type2,1,2,permlist
type1,2,3,4,permlist
See Also
group
type
type,disjcyc
type,partition
Download Help Document