aboutsummaryrefslogtreecommitdiff
path: root/test/iterators.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/iterators.tm')
-rw-r--r--test/iterators.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/iterators.tm b/test/iterators.tm
index 6893c595..fca91b2d 100644
--- a/test/iterators.tm
+++ b/test/iterators.tm
@@ -1,14 +1,14 @@
struct Pair(x:Text, y:Text)
-func pairwise(strs:[Text])->func()->Pair?:
+func pairwise(strs:[Text] -> func(->Pair?)):
i := 1
return func():
if i + 1 > strs.length: return !Pair
i += 1
return Pair(strs[i-1], strs[i])?
-func range(first:Int, last:Int)->func()->Int?:
+func range(first:Int, last:Int -> func(->Int?)):
i := first
return func():
if i > last: