YAPC::EU 2018 Glasgow Update!

This commit is contained in:
Ingy döt Net 2018-08-17 15:15:24 +01:00
parent 22f33d4004
commit 4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions

View file

@ -0,0 +1 @@
{ "one" : 1, "two" : "bad" }

View file

@ -0,0 +1 @@
m:new "one" 1 m:! "two" "bad" m:!

View file

@ -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".
].
]

View file

@ -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".
]

View file

@ -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);

View file

@ -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],