RosettaCodeData/Task/Symmetric-difference/J/symmetric-difference-2.j
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

12 lines
430 B
Text

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│
└────┴──────┴───┴────┘