diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/arrays.tm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/arrays.tm b/test/arrays.tm index 0618a2fc..e1c31cf6 100644 --- a/test/arrays.tm +++ b/test/arrays.tm @@ -95,10 +95,10 @@ func main(): >> nums = [-20, 10, 30] # Custom sort functions: - >> nums:sort(func(x:&%Int,y:&%Int): x:abs() <> y:abs()) + >> nums:sort(func(x,y:&Int): x:abs() <> y:abs()) >> nums = [10, -20, 30] - >> nums:sort(func(x:&%Int,y:&%Int): y[] <> x[]) + >> nums:sort(func(x,y:&Int): y[] <> x[]) >> nums = [30, 10, -20] @@ -159,7 +159,7 @@ func main(): >> nums:sort() >> [nums:binary_search(i) for i in nums] = [1, 2, 3, 4, 5] - >> nums:sort(func(a,b:&%Int): a:abs() <> b:abs()) + >> nums:sort(func(a,b:&Int): a:abs() <> b:abs()) >> [nums:binary_search(i, func(a,b:&Int): a:abs() <> b:abs()) for i in nums] = [1, 2, 3, 4, 5] |
