Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
class Main
|
||||
{
|
||||
public static Void main ()
|
||||
{
|
||||
Int:Str map := [1:"alpha", 2:"beta", 3:"gamma"]
|
||||
|
||||
map.keys.each |Int key|
|
||||
{
|
||||
echo ("Key is: $key")
|
||||
}
|
||||
|
||||
map.vals.each |Str value|
|
||||
{
|
||||
echo ("Value is: $value")
|
||||
}
|
||||
|
||||
map.each |Str value, Int key|
|
||||
{
|
||||
echo ("Key $key maps to $value")
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue