new -> operator

This commit is contained in:
cozis
2022-12-08 03:01:04 +01:00
parent b114387728
commit f7d28556a1
8 changed files with 98 additions and 41 deletions
+12
View File
@@ -0,0 +1,12 @@
fun sayHello(self, other)
print("Hello ", other, " from ", self.name);
person = {
name: "Francesco",
sayHello: sayHello
};
person->sayHello("Giovanni");