summaryrefslogtreecommitdiff
path: root/test.pez
diff options
context:
space:
mode:
Diffstat (limited to 'test.pez')
-rw-r--r--test.pez4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.pez b/test.pez
index e4542d0..7f35b30 100644
--- a/test.pez
+++ b/test.pez
@@ -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