Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Symmetric-difference/Raku/symmetric-difference.raku
Normal file
7
Task/Symmetric-difference/Raku/symmetric-difference.raku
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
my \A = set <John Serena Bob Mary Serena>;
|
||||
my \B = set <Jim Mary John Jim Bob>;
|
||||
|
||||
say A ∖ B; # Set subtraction
|
||||
say B ∖ A; # Set subtraction
|
||||
say (A ∪ B) ∖ (A ∩ B); # Symmetric difference, via basic set operations
|
||||
say A ⊖ B; # Symmetric difference, via dedicated operator
|
||||
Loading…
Add table
Add a link
Reference in a new issue