From ddb5bf5f8b221781c059365b81ded6fdbf8c947f Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 11 Apr 2025 17:56:06 +0200 Subject: fix bug with newrec. add typeof --- test.pez | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'test.pez') diff --git a/test.pez b/test.pez index cd7d608..61034f7 100644 --- a/test.pez +++ b/test.pez @@ -49,4 +49,17 @@ printf["test %a\n", gather[-1, (), 'x]] ys } -printf["%a\n", map["abcd", #[1,2,0]]] +printf["maps %a\n", map["abcd", #[1,2,0]]] + +@inspect: {[m] + printf["%a\n", m] +} + +@r: #{"a" 1, "b" 2, 0 "a"} +r[0]=r + +printf["r: "] inspect[r] +printf["r.a -> %a\n", r[0].a] +{ + inspect [#{0 3,"a" 3}] +}[] -- cgit v1.2.3