aboutsummaryrefslogtreecommitdiff
path: root/examples/learnxiny.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2026-01-02 15:10:48 -0500
committerBruce Hill <bruce@bruce-hill.com>2026-01-02 15:10:48 -0500
commit9653a7c2e53e2bc5e8f146a7d9ea1e71eed19e08 (patch)
tree7f026a142b4f8efcdbf517cc58adc97eb3b37cd5 /examples/learnxiny.tm
parente4d5bf73e4ad9dc51f923a32903011edfeae2908 (diff)
parentce49f93da58d007c0a52ee82e2421adfe06012f9 (diff)
Merge branch 'dev' into constructive-reals
Diffstat (limited to 'examples/learnxiny.tm')
-rw-r--r--examples/learnxiny.tm3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/learnxiny.tm b/examples/learnxiny.tm
index 7af75880..07b9e051 100644
--- a/examples/learnxiny.tm
+++ b/examples/learnxiny.tm
@@ -19,7 +19,7 @@ func main()
my_num := 2.0
# Strings can use interpolation with the dollar sign $:
- say("My variable is $my_variable and this is a sum: $(1 + 2)")
+ say("My variable is $my_variable, my num is $my_num, and this is a sum: $(1 + 2)")
say("
Multiline strings begin with a " at the end of a line and continue in
@@ -115,6 +115,7 @@ func main()
# Empty tables require specifying the key and value types:
empty_table : {Text:Int}
+ assert empty_table == {}
# Tables can be iterated over either by key or key,value:
for key in table