IsIdentical( l, r )
IsIdentical
returns true
if the objects l and r are identical.
Unchangeable objects are considered identical if the are equal.
Changeable objects, i.e., lists and records, are identical if changing
one of them by an assignment also changes the other one, as described
in Identical Lists.
gap> IsIdentical( 1, 1 ); true gap> IsIdentical( 1, () ); false gap> l := [ 'h', 'a', 'l', 'l', 'o' ];; gap> l = "hallo"; true gap> IsIdentical( l, "hallo" ); false
GAP 3.4.4