Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
class Main
|
||||
{
|
||||
public static Void main ()
|
||||
{
|
||||
// create a map which maps Ints to Strs, with given key-value pairs
|
||||
Int:Str map := [1:"alpha", 2:"beta", 3:"gamma"]
|
||||
|
||||
// create an empty map
|
||||
Map map2 := [:]
|
||||
// now add some numbers mapped to their doubles
|
||||
10.times |Int i|
|
||||
{
|
||||
map2[i] = 2*i
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue