diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,7 +31,7 @@ arr_add ::= fn(t ::=, a : &Arr(t), x : t) { square ::= fn(t ::=, x : t) t { a : Arr(t); each i := 1,2..2*x-1 { - arr_add(t, &a, i); + arr_add(&a, i); }; sum := 0 as t; each i := 0..a.len-1 { @@ -50,7 +50,7 @@ inc ::= fn(t ::=, x : t) t { main ::= fn() { arr : Arr(int); farr : Arr(float); - each i := 1..100 { + each i := 1..100 { arr_add(&arr, inc(square(i))); arr_add(&farr, inc(square(i as float))); } |