ACE BN BNA CG CLG COMP FM FREE HEKA IDCA NCA NCSF PART SFA SG SGA SP SYMF TAB TYP

FUNCTION: IsPerm - test whether the argument is a permutation

CALLING SEQUENCE:

IsPerm(expr)
TYP[IsPerm](expr)

PARAMETERS:

expr = any expression

SYNOPSIS:

EXAMPLES:


> with(TYP):
> IsPerm([3,1]);
 
                                    false
 
> IsPerm([3,2,1]);
 
                                     true
 
> IsPerm([2,1,4,3], 'vexillary');
 
                                    false
 

SEE ALSO: Permutation