Endomorphisms( nr )  
Endomorphisms computes all the endomorphisms of the near-ring nr. 
The endomorphisms are returned as a list of transformations. In fact, the
returned list contains those endomorphisms of nr.group which are 
also endomorphisms of the near-ring nr.
  gap> t := Transformation( Group( (1,2) ), [2,1] );
  Transformation( Group( (1,2) ), [ 2, 1 ] )
  gap> nr := Nearring( t );
  Nearring( Transformation( Group( (1,2) ), [ 2, 1 ] ) ) 
  gap> Endomorphisms( nr );
  [ Transformation( Group( (1,2)(3,4), (1,3)(2,4) ), [ 1, 1, 1, 1 ] ), 
    Transformation( Group( (1,2)(3,4), (1,3)(2,4) ), [ 1, 2, 2, 1 ] ), 
    Transformation( Group( (1,2)(3,4), (1,3)(2,4) ), [ 1, 2, 3, 4 ] ) ]
GAP 3.4.4