diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-08 13:20:38 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-08 13:20:38 -0400 |
| commit | f78cd6357acf7bd8eae6687f2530201acd522329 (patch) | |
| tree | 1cb980a4dcfbd5bad3c7237a5940a103f9d2d1a3 /test/tables.tm | |
| parent | c045c54309dfaa7bb11f97dc3f36c595736eca3b (diff) | |
Change table removal function to use values instead of references
Diffstat (limited to 'test/tables.tm')
| -rw-r--r-- | test/tables.tm | 5 |
1 files changed, 5 insertions, 0 deletions
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} |
