LengthWord( w )
LengthWord
returns the length of the word w, i.e., the number of
letters in the word.
gap> a := AbstractGenerator("a");; gap> b := AbstractGenerator("b");; gap> w := (a^2*b)^5*b^-1; a^2*b*a^2*b*a^2*b*a^2*b*a^2 gap> LengthWord( w ); 14 gap> LengthWord( a^13 ); 13 gap> LengthWord( IdWord ); 0
GAP 3.4.4