From 68bedd3c23757a8576e77f38e38ddcf9ecd26d19 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 21 Sep 2025 18:01:19 -0400 Subject: Use colons instead of '=' for tables (e.g. {1: 2}) --- examples/learnxiny.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/learnxiny.tm b/examples/learnxiny.tm index d5d3a8d6..a03db6c9 100644 --- a/examples/learnxiny.tm +++ b/examples/learnxiny.tm @@ -114,7 +114,7 @@ func main() assert table["xxx"] or 0 == 0 # Empty tables require specifying the key and value types: - empty_table : {Text=Int} + empty_table : {Text:Int} # Tables can be iterated over either by key or key,value: for key in table @@ -290,7 +290,7 @@ func demo_enums() assert "$my_shape" == "Circle(1)" == yes - assert {my_shape="nice"} == {Shape.Circle(1)="nice"} + assert {my_shape: "nice"} == {Shape.Circle(1): "nice"} func demo_lambdas() # Lambdas, or anonymous functions, can be used like this: -- cgit v1.2.3