
| ACE | BN | BNA | CG | CLG | COMP | FM | FREE | HEKA | IDCA | NCA | NCSF | PART | SFA | SGA | SP | SYMF | TAB | TYP | 
FUNCTION: Perm2Length - calculate the length of a permutation
CALLING SEQUENCE:
PARAMETERS:
SYNOPSIS:
EXAMPLES:
> with(SG):
> perm:=[5,3,2,1,4]:
> Perm2Length(perm);
 
                                       7
 
> Perm2Rd(perm);
 
                              [4, 3, 2, 1, 3, 2, 3]
 
> Perm2Code(perm);
                                [4, 2, 1, 0, 0]