Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
import system'collections;
|
||||
import system'routines;
|
||||
import extensions;
|
||||
|
||||
public program()
|
||||
{
|
||||
// 1. Create
|
||||
var map := Dictionary.new();
|
||||
map["key"] := "foox";
|
||||
map["key"] := "foo";
|
||||
map["key2"]:= "foo2";
|
||||
map["key3"]:= "foo3";
|
||||
map["key4"]:= "foo4";
|
||||
|
||||
// Enumerate
|
||||
map.forEach:
|
||||
(keyValue){ console.printLine(keyValue.Key," : ",keyValue.Value) }
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
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) }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue