YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
|
|
@ -0,0 +1 @@
|
|||
{ "one" : 1, "two" : "bad" }
|
||||
|
|
@ -0,0 +1 @@
|
|||
m:new "one" 1 m:! "two" "bad" m:!
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import system'collections.
|
||||
|
||||
public program =
|
||||
public program
|
||||
[
|
||||
// 1. Create
|
||||
var aMap := Dictionary new.
|
||||
|
|
@ -9,4 +9,4 @@ public program =
|
|||
aMap["key2"]:= "foo2".
|
||||
aMap["key3"]:= "foo3".
|
||||
aMap["key4"]:= "foo4".
|
||||
].
|
||||
]
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
import system'collections.
|
||||
|
||||
public program
|
||||
[
|
||||
// 1. Create
|
||||
auto aMap := Map<literal,literal>().
|
||||
aMap["key"] := "foox".
|
||||
aMap["key"] := "foo".
|
||||
aMap["key2"]:= "foo2".
|
||||
aMap["key3"]:= "foo3".
|
||||
aMap["key4"]:= "foo4".
|
||||
]
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
print $hash->{key1};
|
||||
print $hashref->{key1};
|
||||
|
||||
$hash->{key1} = 'val1';
|
||||
$hashref->{key1} = 'val1';
|
||||
|
||||
@hash->{'key1', 'three'} = ('val1', -238.83);
|
||||
@{$hashref}{('key1', 'three')} = ('val1', -238.83);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
# Project Associative array/Creation
|
||||
# Date 2018/03/24
|
||||
# Author Gal Zsolt [~ CalmoSoft ~]
|
||||
# Email <calmosoft@gmail.com>
|
||||
|
||||
myarray = [["one",1],
|
||||
["two",2],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue