65.16 IsCode

IsCode( obj )

IsCode returns true if obj, which can be an object of arbitrary type, is a code and false otherwise. Will cause an error if obj is an unbound variable.

    gap> IsCode( 1 );
    false
    gap> IsCode( ReedMullerCode( 2,3 ) );
    true
    gap> IsCode( This_object_is_unbound );
    Error, Variable: 'This_object_is_unbound' must have a value 

Previous Up Top Next
Index

GAP 3.4.4
April 1997