diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-21 13:00:53 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-21 13:00:53 -0500 |
| commit | f868d02b08688c04509d1abda5af89a182033d88 (patch) | |
| tree | af64c48127e0edfebb348edabbccbcc402d2070b /test/reductions.tm | |
| parent | 90573ba7a15bb47a11c1eb6f69ed04c01b69724d (diff) | |
Add `NULL` as a syntax for null values.
Diffstat (limited to 'test/reductions.tm')
| -rw-r--r-- | test/reductions.tm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/reductions.tm b/test/reductions.tm index a844081f..23ccf097 100644 --- a/test/reductions.tm +++ b/test/reductions.tm @@ -2,10 +2,10 @@ struct Foo(x,y:Int) func main(): >> (+: [10, 20, 30]) - = 60? + = 60 : Int? >> (+: [:Int]) - = !Int + = NULL : Int? >> (+: [10, 20, 30]) or 0 = 60 @@ -14,10 +14,10 @@ func main(): = 0 >> (_max_: [3, 5, 2, 1, 4]) - = 5? + = 5 : Int? >> (_max_:abs(): [1, -10, 5]) - = -10? + = -10 : Int? >> (_max_: [Foo(0, 0), Foo(1, 0), Foo(0, 10)])! = Foo(x=1, y=0) @@ -37,7 +37,7 @@ func main(): = yes >> (<=: [:Int]) - = !Bool + = NULL : Bool? >> (<=: [5, 4, 3, 2, 1])! = no |
