‣ SetIfMissing ( rec, name, val ) | ( function ) |
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> RecNames( r ); [ "b", "c", "a" ] gap> SetIfMissing( r, "c", 4 ); gap> r; rec( a := 1, b := 2, c := 3 )
‣ AssignGlobals ( rec ) | ( function ) |
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 ]
generated by GAPDoc2HTML