diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-06 15:11:26 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-06 15:11:26 -0400 |
| commit | fb216e955f04a803f11953be27e76bd4d2c9e76d (patch) | |
| tree | de2c471c5416ec2ee490bdb33f5e3e202d94675a /test/for.tm | |
| parent | 73246764f88f6f652316ee0c138a990d836698a7 (diff) | |
Use colons instead of '=' for tables (e.g. {1: 2})
Diffstat (limited to 'test/for.tm')
| -rw-r--r-- | test/for.tm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/for.tm b/test/for.tm index 75ad2fee..9c329c62 100644 --- a/test/for.tm +++ b/test/for.tm @@ -15,14 +15,14 @@ func labeled_nums(nums:[Int] -> Text) return "EMPTY" return result -func table_str(t:{Text=Text} -> Text) +func table_str(t:{Text:Text} -> Text) str := "" for k,v in t str ++= "$k:$v," else return "EMPTY" return str -func table_key_str(t:{Text=Text} -> Text) +func table_key_str(t:{Text:Text} -> Text) str := "" for k in t str ++= "$k," @@ -40,7 +40,7 @@ func main() >> labeled_nums([]) = "EMPTY" - >> t := {"key1"="value1", "key2"="value2"} + >> t := {"key1":"value1", "key2":"value2"} >> table_str(t) = "key1:value1,key2:value2," >> table_str({}) |
