From 1111a904dfa39bf74742549ed5a5a6d205c4b36f Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 13 Oct 2022 12:12:26 +0200 Subject: array#fill -> array#new --- test.pez | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test.pez') 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 -- cgit v1.2.3