66.6 Technical Details about Tables of Marks

  • InfoTom V

    is the info class for computations concerning tables of marks.

  • IsTableOfMarks( obj ) C

    Each table of marks belongs to this category.

  • TableOfMarksFamily V

    Each table of marks belongs to this family.

  • TableOfMarksComponents V

    The list TableOfMarksComponents is used when a table of marks object is created from a record via ConvertToTableOfMarks (see ConvertToTableOfMarks). TableOfMarksComponents contains at position 2i-1 a name of an attribute and at position 2i the corresponding attribute getter function.

  • ConvertToTableOfMarks( record ) F

    ConvertToTableOfMarks converts a record with components from TableOfMarksComponents into a table of marks object with the corresponding attributes.

    gap> record:= rec( MarksTom:= [ [ 4 ], [ 2, 2 ], [ 1, 1, 1 ] ],
    >  SubsTom:= [ [ 1 ], [ 1, 2 ], [ 1, 2, 3 ] ] );;
    gap> ConvertToTableOfMarks( record );;
    gap> record;
    TableOfMarks( <3 classes> )
    

    [Top] [Previous] [Up] [Next] [Index]

    GAP 4 manual
    February 2000