Records
Functions for records This function has been transferred from package &AutoDoc;, where it was called AUTODOC_WriteOnce. It writes into a record provided the position is not yet bound.

gap> r := rec( a := 1, b := 2 );; gap> SetIfMissing( r, "c", 3 ); gap> names := RecNames( r );; gap> Set( names ); [ "a", "b", "c" ] gap> SetIfMissing( r, "c", 4 ); gap> r; rec( a := 1, b := 2, c := 3 )
This function has been transferred from package &RCWA;.

It assigns the record components of rec to global variables with the same names.

gap> AssignGlobals( r ); The following global variables have been assigned: [ "a", "b", "c" ] gap> [a,b,c]; [ 1, 2, 3 ]