Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/tst/testinstall/opers/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 18.9.2025 mit Größe 541 B image not shown  

Quelle  StructuralCopy.tst   Sprache: unbekannt

 
gap> START_TEST("StructuralCopy.tst");

# Blist
gap> a:=[true];; IsBlistRep(a);
true
gap> b:=[a,a];; IsIdenticalObj(b[1],b[2]);
true
gap> c:=StructuralCopy(b);; IsIdenticalObj(c[1],c[2]);
true

# Plist
gap> a:=[1];; IsPlistRep(a);
true
gap> b:=[a,a];; IsIdenticalObj(b[1],b[2]);
true
gap> c:=StructuralCopy(b);; IsIdenticalObj(c[1],c[2]);
true

# String
gap> a:="test";; IsStringRep(a);
true
gap> b:=[a,a];; IsIdenticalObj(b[1],b[2]);
true
gap> c:=StructuralCopy(b);; IsIdenticalObj(c[1],c[2]);
true

#
gap> STOP_TEST("StructuralCopy.tst");

[ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet)  ]