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=nops⁡expr, 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.
type⁡1,2,3,'permlist'
false
true
type⁡2,1,3,'permlist'
type⁡2,1,2,'permlist'
type⁡1,2,3,4,'permlist'
See Also
group
type
type,disjcyc
type,partition
Download Help Document