RosettaCodeData/Task/Symmetric-difference/J/symmetric-difference-2.j

13 lines
430 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
A -. B NB. items in A but not in B
┌──────┐
│Serena│
└──────┘
A -.~ B NB. items in B but not in A
┌───┐
│Jim│
└───┘
A NB. A is a sequence without duplicates
┌────┬──────┬───┬────┐
│John│Serena│Bob│Mary│
└────┴──────┴───┴────┘