RosettaCodeData/Task/Associative-array-Iteration/Elena/associative-array-iteration-2.elena
2019-09-12 10:33:56 -07:00

18 lines
383 B
Text

import system'collections;
import system'routines;
import extensions;
public program()
{
// 1. Create
auto map := new Map<string,string>();
map["key"] := "foox";
map["key"] := "foo";
map["key2"]:= "foo2";
map["key3"]:= "foo3";
map["key4"]:= "foo4";
// Enumerate
map.forEach:
(tuple){ console.printLine(tuple.Item1," : ",tuple.Item2) }
}