RecFields( rec )
RecFields returns a list of strings corresponding to the names of the
record components of the record rec.
gap> r := rec( a := 1, b := 2 );;
gap> RecFields( r );
[ "a", "b" ]
Note that you cannot use the string result in the ordinary way to access
or change a record component. You must use the rec.(name)
construct (see Accessing Record Elements and Record Assignment).
GAP 3.4.4