diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-02 16:14:20 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-02 16:14:20 -0400 |
| commit | 6ec8f20fc506af4af5513803fb9a708e4f7b5040 (patch) | |
| tree | 8b952073f6eda5b85c375a65c73647a85fa16f27 /examples/learnxiny.tm | |
| parent | ecaf34247eb0728a913804033cf302dada417028 (diff) | |
Syntax change: table types are now: `{K=V; default=...}` and tables
use `{:K=V, ...; default=...}`
Diffstat (limited to 'examples/learnxiny.tm')
| -rw-r--r-- | examples/learnxiny.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/learnxiny.tm b/examples/learnxiny.tm index 00c7e94a..a394e581 100644 --- a/examples/learnxiny.tm +++ b/examples/learnxiny.tm @@ -123,7 +123,7 @@ func main(): = 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: @@ -243,7 +243,7 @@ func takes_many_types( floating_point_number:Num, text_aka_string:Text, array_of_ints:[Int], - table_of_text_to_bools:{Text,Bool}, + table_of_text_to_bools:{Text=Bool}, pointer_to_mutable_array_of_ints:@[Int], optional_int:Int?, function_from_int_to_text:func(x:Int -> Text), |
