diff options
Diffstat (limited to 'test.pez')
| -rw-r--r-- | test.pez | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ } @Array2d: {[w, h] - @data: array#fill[w * h, 0] + @data: array#new[w * h, 0] dilambda[ {[x, y] data[x + (y * w)] }, {[x, y, new] data[x + (y * w)] = new } @@ -44,7 +44,7 @@ printf["4+1+3: %a\n", add[4,1,3]] printf["test %a\n", gather[-1, (), 'x]] @map: {[f, xs] - @ys: array#filled[xs.len, ()] + @ys: array#new[xs.len] FOR [@i: 0][< xs.len][+ 1] ys[i] = f[xs[i]] ys |