45.8 IsRec

IsRec( obj )

IsRec returns true if the object obj, which may be an object of arbitrary type, is a record, and false otherwise. Will signal an error if obj is a variable with no assigned value.

    gap> IsRec( rec( a := 1, b := 2 ) );
    true
    gap> IsRec( IsRec );
    false 

Previous Up Top Next
Index

GAP 3.4.4
April 1997