diff options
| author | 2022-10-13 12:12:26 +0200 | |
|---|---|---|
| committer | 2022-10-13 12:14:57 +0200 | |
| commit | 1111a904dfa39bf74742549ed5a5a6d205c4b36f (patch) | |
| tree | 837462b454bdb6927cacfc9fc8d1a186a4c3fe8d /test.pez | |
| parent | 6518bc6964e7ecb4f187dcaf789fdc3742c5bb9d (diff) | |
array#fill -> array#new
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 |