From d4b10514fbe3afc7229efe74b015a664b52eba33 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Nov 2024 16:36:27 -0500 Subject: Clean up some more null->none renames and fix the documentation. Also change the literal syntax to `NONE:T` instead of `!T` --- test/iterators.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/iterators.tm') 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)? -- cgit v1.2.3