RosettaCodeData/Task/Collections/Seed7/collections-3.seed7
2017-09-25 22:28:19 +02:00

16 lines
393 B
Text

$ include "seed7_05.s7i";
const type: aHashType is hash [string] string;
const proc: main is func
local
var aHashType: aHash is aHashType.value;
var string: aValue is "";
var string: aKey is "";
begin
aHash @:= ["gold"] "metal";
aHash @:= ["helium"] "noble gas";
for aValue key aKey range aHash do
writeln(aKey <& ": " <& aValue);
end for;a
end func;