From f78cd6357acf7bd8eae6687f2530201acd522329 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 8 Aug 2024 13:20:38 -0400 Subject: Change table removal function to use values instead of references --- test/tables.tm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/tables.tm b/test/tables.tm index 4c61bb77..132e4301 100644 --- a/test/tables.tm +++ b/test/tables.tm @@ -56,3 +56,8 @@ func main(): = {1:10, 3:30, 5:50} >> {x:10*x for x in y if x > 1 for y in [3, 4, 5] if y < 5} = {2:20, 3:30, 4:40} + + >> t3 := {1:10, 2:20, 3:30} + >> t3:remove(3) + >> t3 + = {1:10, 2:20} -- cgit v1.2.3