aboutsummaryrefslogtreecommitdiff
path: root/test/sets.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-21 14:25:45 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-21 14:25:45 -0400
commit6d15697edce2217a2bbc82def26262d18dac6373 (patch)
tree9c00c6211a10dffc99c3a6566ee3fb03f4d6849d /test/sets.tm
parente4d7ab31057868739f48638cadc5d70aa4929fae (diff)
Added Set infix operations, as well as Table.with_fallback() and fixed
some bugs with update assignment.
Diffstat (limited to 'test/sets.tm')
-rw-r--r--test/sets.tm9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/sets.tm b/test/sets.tm
index fe2e91f8..85e53463 100644
--- a/test/sets.tm
+++ b/test/sets.tm
@@ -40,3 +40,12 @@ func main()
>> empty : |Int| = ||
= ||
+
+ >> |1,2,3| or |3,4|
+ = |1,2,3,4|
+ >> |1,2,3| and |3,4|
+ = |3|
+ >> |1,2,3| xor |3,4|
+ = |1,2,4|
+ >> |1,2,3| - |3,4|
+ >> |1,2|