summaryrefslogtreecommitdiff
path: root/test.pez
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-10-13 12:12:26 +0200
committerlemon <lsof@mailbox.org>2022-10-13 12:14:57 +0200
commit1111a904dfa39bf74742549ed5a5a6d205c4b36f (patch)
tree837462b454bdb6927cacfc9fc8d1a186a4c3fe8d /test.pez
parent6518bc6964e7ecb4f187dcaf789fdc3742c5bb9d (diff)
array#fill -> array#new
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