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 /docs/reductions.md | |
| parent | 90573ba7a15bb47a11c1eb6f69ed04c01b69724d (diff) | |
Add `NULL` as a syntax for null values.
Diffstat (limited to 'docs/reductions.md')
| -rw-r--r-- | docs/reductions.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/reductions.md b/docs/reductions.md index b4e78624..2ed6879f 100644 --- a/docs/reductions.md +++ b/docs/reductions.md @@ -8,7 +8,7 @@ infix operator followed by a colon, followed by a collection: nums := [10, 20, 30] sum := (+: nums) >> sum -= 60? += 60 : Int? ``` Reductions return an optional value which will be a null value if the thing @@ -22,7 +22,7 @@ nums := [:Int] sum := (+: nums) >> sum -= !Int += NULL : Int? >> sum or 0 = 0 |
