IsPerm( obj )
IsPerm
returns true
if obj, which may be an object of arbitrary
type, is a permutation and false
otherwise. It will signal an error if
obj is an unbound variable.
gap> IsPerm( (1,2) ); true gap> IsPerm( 1 ); false
GAP 3.4.4