|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_String_Map, seg_032cb0
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Text_Io; with String_Map_Generic; procedure Test_String_Map is package Int_Map is new String_Map_Generic (10, Integer); The_Map : Int_Map.Map := Int_Map.Nil; I : Integer; Found : Boolean; begin Int_Map.Initialize (The_Map); Int_Map.Define (The_Map, "un", 1); Int_Map.Find (The_Map, "un", I, Found); Text_Io.Put (Integer'Image (I)); Int_Map.Define (The_Map, "deux", 2); Int_Map.Define (The_Map, "un", 10); Int_Map.Find (The_Map, "un", I, Found); Text_Io.Put (Integer'Image (I)); Int_Map.Define (The_Map, "un", 100); Int_Map.Find (The_Map, "un", I, Found); Text_Io.Put (Integer'Image (I)); Text_Io.Put (Natural'Image (Int_Map.Cardinality (The_Map))); Int_Map.Undefine (The_Map, "deux"); Text_Io.Put (Natural'Image (Int_Map.Cardinality (The_Map))); Int_Map.Find (The_Map, "deux", I, Found); Text_Io.Put (Boolean'Image (Found)); Text_Io.Put (Integer'Image (I)); exception when Int_Map.Undefined => Text_Io.Put ("undefined"); when Int_Map.Multiply_Defined => Text_Io.Put ("multiply_defined"); when Numeric_Error => Text_Io.Put ("numeric error"); end Test_String_Map;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=1e rec1=00 rec2=01 rec3=010 [0x01] rec0=0a rec1=00 rec2=02 rec3=001 tail 0x2152b75e684cb7111ef84 0x42a00088462060003