diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-06-24 13:37:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-06-24 13:37:09 -0400 |
| commit | 271017ba9970e4220e1bd0dc83ce146afe9222a2 (patch) | |
| tree | 995233d21141f164aa5f9e1d9b7bab757124e622 /api/sets.md | |
| parent | e122e5525ef044c25c2cd888bc267f7a2bd91b4f (diff) | |
Add Path.has_extension() and update manpages/api docs
Diffstat (limited to 'api/sets.md')
| -rw-r--r-- | api/sets.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/api/sets.md b/api/sets.md index b64439c2..8b07cf08 100644 --- a/api/sets.md +++ b/api/sets.md @@ -241,3 +241,27 @@ other | `|T|` | The set of items to remove from the original set. | - = |1| ``` + +# Table +## Table.xor + +```tomo +Table.xor : func(a: |T|, b: |T| -> |T|) +``` + +Return set with the elements in one, but not both of the arguments. This is also known as the symmetric difference or disjunctive union. + +Argument | Type | Description | Default +---------|------|-------------|--------- +a | `|T|` | The first set. | - +b | `|T|` | The second set. | - + +**Return:** A set with the symmetric difference of the arguments. + + +**Example:** +```tomo +>> |1, 2, 3|.xor(|2, 3, 4|) += |1, 4| + +``` |
