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

13 lines
430 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07: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│
└────┴──────┴───┴────┘