aboutsummaryrefslogtreecommitdiff
path: root/test/iterators.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-18 20:39:57 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-18 20:39:57 -0400
commit967b649da20f1cb2011025456853cb55f25e9a88 (patch)
treeffce4f06f5fbb833c8aee2ba7c6982156f7bfac4 /test/iterators.tm
parentd804b09b02b9c4a6ea6b16ae85524a704796cbc1 (diff)
Deprecate `#` operator in favor of .length and fix up some issues
Diffstat (limited to 'test/iterators.tm')
-rw-r--r--test/iterators.tm2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/iterators.tm b/test/iterators.tm
index 1f7ce342..0a2d2818 100644
--- a/test/iterators.tm
+++ b/test/iterators.tm
@@ -3,7 +3,7 @@ enum PairIteration(Done, Next(x:Text, y:Text))
func pairwise(strs:[Text])->func()->PairIteration:
i := 1
return func():
- if i + 1 > #strs: return PairIteration.Done
+ if i + 1 > strs.length: return PairIteration.Done
i += 1
return PairIteration.Next(strs[i-1], strs[i])