Dear GAP-Forum,
it seems to me that the function PositionWord does not always
work correctly. The following looks quite strange to me, but maybe I
do not expect the right thing.
a := AbstractGenerator("a");; b := AbstractGenerator("b");;
PositionWord(a*b*a,b,1);
yields the correct result
2
but
ag := AbstractGenerators("a",2);; a1 := ag[1];; a2 := ag[2];; PositionWord(a1*a2*a1,a2,1);
signals an error:
Error, usage: PositionWord( <word>, <sub>[, <from>] )
greetings
Juergen Ecker
Universitaet Linz
Inst. f. Math.
Austria