RosettaCodeData/Task/Symmetric-difference/K/symmetric-difference.k

11 lines
243 B
Text
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
A: ?("John";"Bob";"Mary";"Serena")
B: ?("Jim";"Mary";"John";"Bob")
A _dvl B / in A but not in B
"Serena"
B _dvl A / in B but not in A
"Jim"
(A _dvl B;B _dvl A) / Symmetric difference
("Serena"
"Jim")