diff options
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 fca91b2d..d6bcfa13 100644 --- a/test/iterators.tm +++ b/test/iterators.tm @@ -19,7 +19,7 @@ func range(first:Int, last:Int -> func(->Int?)): func main(): values := ["A", "B", "C", "D"] - >> ((++) "($(foo.x)$(foo.y))" for foo in pairwise(values)) + >> (++: "($(foo.x)$(foo.y))" for foo in pairwise(values))! = "(AB)(BC)(CD)" >> ["$(foo.x)$(foo.y)" for foo in pairwise(values)] = ["AB", "BC", "CD"] @@ -34,5 +34,5 @@ func main(): >> [i for i in range(5, 10)] = [5, 6, 7, 8, 9, 10] - >> (+) range(5, 10) + >> (+: range(5, 10))! = 45 |
