diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-24 16:36:27 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-24 16:36:27 -0500 |
| commit | d4b10514fbe3afc7229efe74b015a664b52eba33 (patch) | |
| tree | 133cf2fd377ab8acbfa65908d04473ce0dd0ca49 /test/iterators.tm | |
| parent | 1e3fb8a2c0cca385d65c52679411b118b5fb4641 (diff) | |
Clean up some more null->none renames and fix the documentation. Also
change the literal syntax to `NONE:T` instead of `!T`
Diffstat (limited to 'test/iterators.tm')
| -rw-r--r-- | test/iterators.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/iterators.tm b/test/iterators.tm index 2adcab4a..ebb040fd 100644 --- a/test/iterators.tm +++ b/test/iterators.tm @@ -4,7 +4,7 @@ struct Pair(x:Text, y:Text) func pairwise(strs:[Text] -> func(->Pair?)): i := 1 return func(): - if i + 1 > strs.length: return !Pair + if i + 1 > strs.length: return NONE:Pair i += 1 return Pair(strs[i-1], strs[i])? @@ -12,7 +12,7 @@ func range(first:Int, last:Int -> func(->Int?)): i := first return func(): if i > last: - return !Int + return NONE:Int i += 1 return (i-1)? |
