aboutsummaryrefslogtreecommitdiff
path: root/test/iterators.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-21 16:28:57 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-21 16:28:57 -0400
commitfd74479a2bf2e4ccc35d1c2fa206de8f28be1e54 (patch)
tree0cdf5c4659264b612b5f3fbb4ce6a3b11dd736f5 /test/iterators.tm
parent92185a002a2e8b669add454a945c0ecdc0904993 (diff)
Deprecate optional '?' postfix operator
Diffstat (limited to 'test/iterators.tm')
-rw-r--r--test/iterators.tm8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/iterators.tm b/test/iterators.tm
index c48e572b..ed08f73d 100644
--- a/test/iterators.tm
+++ b/test/iterators.tm
@@ -3,17 +3,17 @@ struct Pair(x:Text, y:Text)
func pairwise(strs:[Text] -> func(->Pair?))
i := 1
- return func()
+ return func(-> Pair?)
i += 1
- return Pair(strs[i-1] or return none, strs[i] or return none)?
+ return Pair(strs[i-1] or return none, strs[i] or return none)
func range(first:Int, last:Int -> func(->Int?))
i := first
- return func()
+ return func(->Int?)
if i > last
return none
i += 1
- return (i-1)?
+ return (i-1)
func main()
values := ["A", "B", "C", "D"]